代码搜索:Collection
找到约 10,000 项符合「Collection」的源代码
代码结果 10,000
www.eeworm.com/read/140893/7117079
java simplecollection.java
//: c11:SimpleCollection.java
// A simple example using Java 2 Collections.
// From 'Thinking in Java, 3rd ed.' (c) Bruce Eckel 2002
// www.BruceEckel.com. See copyright notice in CopyRight.txt.
i
www.eeworm.com/read/140893/7117096
java failfast.java
//: c11:FailFast.java
// Demonstrates the "fail fast" behavior.
// {ThrowsException}
// From 'Thinking in Java, 3rd ed.' (c) Bruce Eckel 2002
// www.BruceEckel.com. See copyright notice in CopyRig
www.eeworm.com/read/140893/7117102
java printingcontainers.java
//: c11:PrintingContainers.java
// Containers print themselves automatically.
// From 'Thinking in Java, 3rd ed.' (c) Bruce Eckel 2002
// www.BruceEckel.com. See copyright notice in CopyRight.txt.
www.eeworm.com/read/104147/7141381
java printingcontainers.java
import java.util.*;
public class PrintingContainers {
static Collection fill(Collection c) {
c.add("dog");
c.add("dog");
c.add("cat");
return c;
}
static Map fill(Map
www.eeworm.com/read/332978/7141511
java collectionmethods.java
//: containers/CollectionMethods.java
// Things you can do with all Collections.
import java.util.*;
import net.mindview.util.*;
import static net.mindview.util.Print.*;
public class Collection
www.eeworm.com/read/332978/7141523
java failfast.java
//: containers/FailFast.java
// Demonstrates the "fail-fast" behavior.
import java.util.*;
public class FailFast {
public static void main(String[] args) {
Collection c = new Arra
www.eeworm.com/read/332978/7141694
java interfaceextractorprocessorfactory.java
//: annotations/InterfaceExtractorProcessorFactory.java
// APT-based annotation processing.
package annotations;
import com.sun.mirror.apt.*;
import com.sun.mirror.declaration.*;
import java.util
www.eeworm.com/read/332978/7141991
java pprint.java
//: net/mindview/util/PPrint.java
// Pretty-printer for collections
package net.mindview.util;
import java.util.*;
public class PPrint {
public static String pformat(Collection c) {
i
www.eeworm.com/read/332978/7141992
java containermethoddifferences.java
//: net/mindview/util/ContainerMethodDifferences.java
package net.mindview.util;
import java.lang.reflect.*;
import java.util.*;
public class ContainerMethodDifferences {
static Set m
www.eeworm.com/read/332978/7142127
java foreachcollections.java
//: holding/ForEachCollections.java
// All collections work with foreach.
import java.util.*;
public class ForEachCollections {
public static void main(String[] args) {
Collection