代码搜索:Exercise

找到约 10,000 项符合「Exercise」的源代码

代码结果 10,000
www.eeworm.com/read/414988/11087488

java genericsequence.java

// generics/GenericSequence.java // TIJ4 Chapter Generics, Exercise 4, page 624 // 'Generify' innerclasses/Sequence.java. import java.util.*; interface Selector { boolean end(); Object curre
www.eeworm.com/read/414988/11087513

java toytest2.java

//typeinfo/toys/ToyTest2.java // TIJ4 Chapter Typeinfo, Exercise 2, page 561 // Incorporate a new kind of interface into ToyTest.java and // verify that it is detected and displayed properly. pac
www.eeworm.com/read/414988/11087525

java ex8(3).java

// typeinfo/Ex8.java // TIJ4 Chapter Typeinfo, Exercise 8, page 562 // Write a method that takes an object and recursively prints all // the classes in that object's hierarchy. class A {} cl
www.eeworm.com/read/414988/11087527

java music26.java

// typeinfo/music268/Music268.java // TIJ4 Chapter Typeinfo, Exercise 26, page 615 // Implement clearSpitValve() as described in the summary. /* Solution includes, in same package: * import java
www.eeworm.com/read/414988/11087531

java simpledynamicproxy23.java

// typeinfo/SimpleDynamicProxy23.java // TIJ4 Chapter Typeinfo, Exercise 23, page 598 // Inside invoke() in SimpleDynamicProxy.java, try to print the proxy argument and explain // what happens. im
www.eeworm.com/read/414988/11087536

java showmethods18.java

// typeinfo/ShowMethods18.java // TIJ4 Chapter Typeinfo, Exercise 18, page593 // Make ShowMethods a non-public class and verify that the synthesized default // constructor no longer shows up in the
www.eeworm.com/read/414988/11087574

java onoffswitch14.java

// exceptions/OnOffSwitch14.java // TIJ4 Chapter Exceptions, Exercise 14, page 476 // Show that the OnOffSwitch.java can fail by throwing a // RuntimeException inside the try block. public class
www.eeworm.com/read/414988/11087595

java human30.java

// exceptions/Human30.java // TIJ4 Chapter Exceptions, Exercise 30, page 500 /* Modify Human.java so that the exceptions inherit from * RuntimeException. Modify main() so that the technique * in
www.eeworm.com/read/414988/11087639

java cadsystem16.java

// reusing/CADSystem16.java // TIJ4 Chapter Exceptions, Exercise 16, page 477 // MOdify reusing/CADSystem.java to demonstrate that returning from the // middle of a try-finally will still perform
www.eeworm.com/read/414988/11087657

java shapes4.java

// polymorphism/Shapes4.java // TIJ4 Chapter Polymorphism, Exercise 4, page 286 /* Add a new shape to Shapes.java and verify in main() that polymorphism works * for your new type as is does for the