代码搜索:Exercise
找到约 10,000 项符合「Exercise」的源代码
代码结果 10,000
www.eeworm.com/read/392244/8355613
java fibonacci7.java
// generics/Fibonacci7.java
// TIJ4 Chapter Generics, Exercise 7, page 631
// Use composition instead of inheritance to adapt Fibonacci
// to make it interable.
import net.mindview.util.*;
import
www.eeworm.com/read/392244/8355653
java factoryconstraint23.java
// generics/FactoryConstraint23.java
// TIJ4 Chapter Generics, Exercise 23, page 667
// Modify FactoryConstraint.java so that create() takes an argument.
interface FactoryI {
T create(Intege
www.eeworm.com/read/392244/8355679
java shapes3(1).java
// typeinfo/Shapes3.java
// TIJ4 Chapter Typeinfo, Exercise 3, page 561
/* Add Rhomboid to Shapes.java. Create a Rhomboid, upcast it to a Shape,
* then downcast it back to a Rhomboid. Try downcasti
www.eeworm.com/read/392244/8355754
java ex1(1).java
// exceptions/Ex1.java
// TIJ4 Chapter Exceptions, Exercise 1, page 452
/* Create a class with a main(0 that throws an object of class Exception
* inside a try block. Give the constructor for Excep
www.eeworm.com/read/392244/8355755
java ex2(2).java
// exceptions/Ex2.java
// TIJ4 Chapter Exceptions, Exercise 2, page 452
/* Define an object reference and initialize it to null. Try to call a method
* through this reference. Now wrap the code in
www.eeworm.com/read/392244/8355766
java ex4(2).java
// exceptions/Ex4.java
// TIJ4 Chapter Exceptions, Exercise 4, page 452
/* Create your own exception class using the extends keyword. Write a
* constructor for this class that takes a String argum
www.eeworm.com/read/392244/8355771
java withfinally15.java
// exceptions/WithFinally15.java
// TIJ4 Chapter Exceptions, Exercise 15, page 476
// Show that WithFinally.java doesn't fail by throwing a
// RuntimeException inside the try block.
public clas
www.eeworm.com/read/392244/8355782
java ex25(1).java
// exceptions/Ex25.java
// TIJ4 Chapter Exceptions, Exercise 25, page 490
/* Create a three-level hierarchy of exceptions. Now create a
* base-class A with a method that throws an exception at the
www.eeworm.com/read/392244/8355876
java shapes3.java
// polymorphism/Shapes3.java
// TIJ4 Chapter Polymorphism, Exercise 3, page 286
/* Add a new method in the base class of Shapes.java that prints a message, but
* don't override it in the derived cl
www.eeworm.com/read/392244/8355897
java ex5(3).java
// arrays/Ex5.java
// TIJ4 Chapter Arrays, Exercise 5, page 759
// Demonstrate that multidimensional arrays of non-primitives are
// automatically initialized to null.
import java.util.*;
class