代码搜索:HashSet
找到约 4,767 项符合「HashSet」的源代码
代码结果 4,767
www.eeworm.com/read/337385/12373356
java testset.java
import java.util.*;
public class TestSet {
public static void main(String[] args) {
HashSet h = new HashSet();
h.add("1st");
h.add("2nd");
h.add(new Integer(3));
h.add(new Double(4
www.eeworm.com/read/127767/14335858
txt e353. operating on sets.txt
See also e352 Creating a Set.
// Create the sets
Set set1 = new HashSet();
Set set2 = new HashSet();
// Add elements to the sets ...
// Copy all the elements from
www.eeworm.com/read/154161/5639968
java testhashset.java
package apibook.c2.s1;
import java.util.*;
public class TestHashSet {
public TestHashSet() {
}
public static void printElem(Iterator iter){
//显示集合中的所有元素
while(iter.hasNext()){
//对集
www.eeworm.com/read/387836/8651367
java randomtest.java
import java.util.HashSet;
import java.util.Iterator;
import java.util.Random;
//import java.util.Set;
public class RandomTest
{
private static final int SET_SIZE = 10; //要填满多少个值
publ
www.eeworm.com/read/273406/10917606
java setexample.java
//: SetExample.java
//package g3ds.joop.ch8;
import java.util.*;
public class SetExample{
public static void main(String[] args) {
Collection c = new TreeSet();
www.eeworm.com/read/466324/7032812
java exercise19_6.java
// Exercise19_6.java: Demonstrate ConcurrentModificationException
// Be patient to run it a couple times to see the exception
import java.util.*;
public class Exercise19_6 {
HashSet hashSet =
www.eeworm.com/read/466324/7033285
java exercise19_7.java
// Exercise19_7.java: Use synchronized set to avoid exception
import java.util.*;
public class Exercise19_7 {
private Set hashSet = Collections.synchronizedSet(new HashSet());
class Thread
www.eeworm.com/read/456187/7355492
java exercise19_6.java
// Exercise19_6.java: Demonstrate ConcurrentModificationException
// Be patient to run it a couple times to see the exception
import java.util.*;
public class Exercise19_6 {
HashSet hashSet =
www.eeworm.com/read/466324/7032702
java exercise18_1.java
import java.util.*;
public class Exercise18_1 {
public static void main(String[] args) {
HashSet set1 = new HashSet(Arrays.asList(
new String[]{"George", "Jim", "John", "Blake", "Kev
www.eeworm.com/read/154303/7106934
txt ex8_23.txt
Example 8.23 PersistenceManager Class
import javax.transaction.*;
import java.util.HashSet;
import java.util.Iterator;
public class PersistenceManager {
HashSet stateManagers = new HashSet();