代码搜索:Exercise
找到约 10,000 项符合「Exercise」的源代码
代码结果 10,000
www.eeworm.com/read/395876/8147385
java checkedlist35.java
// generics/CheckedList35.java
// TIJ4 Chapter Generics, Exercise 35, page 711
// Modify CheckedList.java so that it uses the Coffee classes defined
// in this chapter.
import generics.coffee.*;
www.eeworm.com/read/395876/8147393
java functional42.java
// generics/Functional42.java
// TIJ4 Chapter Generics, Exercise 42, page 743
/*
* Create two separate classes, with nothing in common. Each class should
* hold a value, and at least have methods
www.eeworm.com/read/395876/8147419
java sixtupletest.java
// generics/SixTupleTest.java
// TIJ4 Chapter Generics, Exercise 3, page 624
// Create and test a SixTuple generic.
import net.mindview.util.*;
class Robot {}
class Amphibian {}
class Vehicle
www.eeworm.com/read/395876/8147425
java genericcast32.java
// generics/GenericCast32.java
// TIJ4 Chapter Genericss, Exercise 32, page 699
/*
* Verify that FixedSizeStack in GenericCast.java generates exceptions
* if you try to go out of its bounds. Does
www.eeworm.com/read/395876/8147453
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/395876/8147515
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/395876/8147535
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/395876/8147592
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/395876/8147595
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/395876/8147611
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