代码搜索:Exercise
找到约 10,000 项符合「Exercise」的源代码
代码结果 10,000
www.eeworm.com/read/344238/11897359
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 class
www.eeworm.com/read/344238/11897368
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 T
www.eeworm.com/read/344238/11897394
java ex2.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/344238/11897409
java ex25.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/344238/11897423
java ex1.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/344238/11897437
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 p
www.eeworm.com/read/344238/11897489
java compareints.java
// control/CompareInts.java
// TIJ4 Chapter Control, Exercise 2, page 139
/* Write a program that generates 25 random int values. For each value, use an
* if-else statement to classify it as greate
www.eeworm.com/read/344238/11897566
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/344238/11897577
java outer1.java
// innerclasses/Outer1.java
// TIJ4 Chapter Innerclasses, Exercise 1, page 347
/* Write a class named Outer that contains an inner class named Innet.
* Add a method to Outer that returns an object
www.eeworm.com/read/344238/11897644
java ex18.java
// innerclasses/Ex18.java
// TIJ4 Chapter Innerclasses, Exercise 18, page 366
/* Create a class containing a nested class. In main(), create an instance of
* the nested class.
*/
public class E