代码搜索:Exercise
找到约 10,000 项符合「Exercise」的源代码
代码结果 10,000
www.eeworm.com/read/434781/7801806
java ex7(3).java
// containers/Ex7.java
// TIJ4 Chapter Containers, Exercise 7, page 820
/* Create both an ArrayList and a LinkedList, and fill each using the
* Countries.names() generator. Print each list using a
www.eeworm.com/read/434781/7801807
java ex9(4).java
// containers/Ex9.java
// TIJ4 Chapter Containers, Exercise 9, page 827
// Use RandomGenerator.String to fill a TreeSet, but use alphabetic
// ordering. Print the TreeSet to verify the sort order.
www.eeworm.com/read/434781/7801836
java ex29(1).java
// generics/Ex29.java
// TIJ4 Chapter Generics, Exercise 29, page 694
/* Create a generic method that takes as an argument a Holder
www.eeworm.com/read/434781/7801850
java ex27(1).java
// generics/Ex27.java
// TIJ4 Chapter Generics, Exercise 27, page 680
// Show that covariancd doesn't work with Lists using Numbers and
// Integers, then introduce wildcards.
import java.util.*;
www.eeworm.com/read/434781/7801853
java genericcast33.java
// generics/GenericCast33.java
// TIJ4 Chapter Generics, Exercise 33, page 699
// Repair GenericCast.java using an ArrayList.
import java.util.*;
class VariableSizeStack {
private ArrayLis
www.eeworm.com/read/434781/7801858
java ex25(3).java
// generics/Ex25.java
// TIJ4 Chapter Generics, Exercise 25, page 677
/* Create two interfaces and a class that implements both. Create two
* generic methods, one whose argument parameter is bounde
www.eeworm.com/read/434781/7801878
java sweetshop7.java
// typeinfo/SweetShop7.java
// TIJ4 Chapter Typeinfo, Exercise 7, page 561
/* Modify SweetShop.java so that each type of object creation is controlled
* by a command-line argument. That is, if your
www.eeworm.com/read/434781/7801879
java ex11(3).java
// typeinfo/Ex11.java
// TIJ4 Chapter Typeinfo, Exercise 11, page 582
// Add Gerbil to the typeinfo.pets library and modify all the examples
// in this chapter to adapt to this new class.
import t
www.eeworm.com/read/434781/7801880
java finder25.java
// typeinfo/Finder25.java
// TIJ4 Chapter Typeinfo, Exercise 25, page 613
/* Create a class containing private, protected and package-access methods.
* Write code to access these methods from outs
www.eeworm.com/read/434781/7801904
java frog17(1).java
// exceptions/Frog17.java
// TIJ4 Chapter Exceptions, Exercise 17, page 477
/* Modify pholymorphism/Frog.java so that it uses try-finally to
* guarantee proper cleanup, and show that this works ev