代码搜索:Exercise

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

代码结果 10,000
www.eeworm.com/read/434781/7801911

java ex9(1).java

// exceptions/Ex9.java // TIJ4 Chapter Exceptions, Exercise 9, page 460 /* Create three new types of exceptions. Write a class with a method that * throws all three. In main(), call the method but
www.eeworm.com/read/434781/7801913

java ex6(2).java

// exceptions/Ex6.java // TIJ4 Chapter Exceptions, Exercise 6, page 456 /* Create two exception classes, each of which performs its own logging * automtically. Demonstrate that these work. */ imp
www.eeworm.com/read/434781/7801923

java ex10.java

// polymorphism/Ex10.java // TIJ4 Chapter Polymorphism, Exercise 10, page 290 /* Create a base class with two methods. In the first method, call the second * method. Inherit a class and override th
www.eeworm.com/read/434781/7801947

java ex2(3).java

// arrays/Ex2.java // TIJ4 Chapter Arrays, Exercise 2, page 754 // Write a method that takes an int argument and returns an // array of that size filled BerylliumSpheres. import java.util.*; imp
www.eeworm.com/read/434781/7801958

java ex19(3).java

// arrays/Ex19.java // TIJ4 Chapter Arrays, Exercise 19, page 778 /* Create a class with an int field that's initialized from a constructor * argument. Create two arrays of these objects, using ide
www.eeworm.com/read/434781/7801968

java cookiemonster.java

// access/cookie2/CookieMonster.java // TIJ4 Chapter Access, Exercise 4, page 227 // Show that protected methods have package access but are not public. /* In directory Cookie2: * //access/cooki
www.eeworm.com/read/434781/7801974

java device.java

// reusing/Device.java // TIJ4. Chapter Reusing, Exercise 15, page 260 /* Create a class inside a package. Your class should contain a protected * method. Outside of the package, try to call the pr
www.eeworm.com/read/434781/7801982

java chess.java

// reusing/Chess.java // TIJ3 Chapter Reusing, Exercise 6, page 246 /* Using Chess.java, prove the statements in the previous paragraph. (If you * don't call the base class constructor in BoardGame
www.eeworm.com/read/434781/7801983

java e.java

// reusing/E.java // TIJ4 Chapter Reusing, Exercise 4, page 245 /* Prove that base-class constructors are (a) always called and (b) called before * derived-class constructors. */ import static
www.eeworm.com/read/434781/7801984

java detergentdelegation.java

// reusing/DetergentDelegation.java // TIJ4 Chapter Reusing, Exercise 11, page 248 // Modify Detergent.java so that is uses delegation. import static net.mindview.util.Print.*; class Cleanser {