代码搜索:HashSet
找到约 4,767 项符合「HashSet」的源代码
代码结果 4,767
www.eeworm.com/read/356031/10238706
txt day06.txt
集合:保存多个其他对象的对象,不能保存简单类型
List:有序(存放元素的顺序),可重复的集合
ArrayList:实质就是一个会自动增长的数组
查询效率比较高,增删的效率比较低,适用于查询比较频繁,增删动作较少的元素管理的集合。
加载大批量的数据时,先进行手动扩容(就是调用ensureCapacity(int minCapacity)方法),这样可以提高效率。
...
www.eeworm.com/read/162286/10318903
java parse.java
import java.io.*;
import java.util.*;
public class Parse implements LineRead {
static final int levelMax = 3;
static final int amax = 2047;
PrintWriter outFile;
Scan scanner;
www.eeworm.com/read/277544/10629002
java pendingjob.java
/*
* Created by IntelliJ IDEA.
* User: fsommers
* Date: May 1, 2002
* Time: 11:38:39 PM
* To change template for new class use
* Code Style | Class Templates options (Tools | IDE Options).
*/
www.eeworm.com/read/276301/10750455
java treesetdemo.java
import java.util.*;
class TreeSetDemo
{
public static void main(String[] args)
{
HashSet hs=new HashSet();
hs.add(new Integer(1));
hs.add(new Integer(2));
hs.add(new Integer(3)
www.eeworm.com/read/275131/10834977
java pendingjob.java
package primecruncher;
import java.util.*;
public class PendingJob{
private String jobID;
private Dispatcher dispatcher; //发布者
private ResultListener resultListener;
p
www.eeworm.com/read/419512/10863744
java sets.java
package myutils;
import java.util.*;
public class Sets {
public static Set union(Set a,Set b){
Set result = new HashSet(a);
result.addAll(b);
return result;
}
publi
www.eeworm.com/read/273406/10917605
java iteratorexample.java
//: IteratorExample.java
//package g3ds.joop.ch8;
import java.util.*;
public class IteratorExample{
public static void main(String[] args) {
//创建一个集合,不失一般性,应声明为Collection
www.eeworm.com/read/418735/10930124
jrag branchtarget.jrag
/*
* The JastAdd Extensible Java Compiler (http://jastadd.org) is covered
* by the modified BSD License. You should have received a copy of the
* modified BSD license with this compiler.
*
* Cop
www.eeworm.com/read/418735/10931103
jrag branchtarget.jrag
/*
* The JastAdd Extensible Java Compiler (http://jastadd.org) is covered
* by the modified BSD License. You should have received a copy of the
* modified BSD license with this compiler.
*
* Cop
www.eeworm.com/read/470601/6904946
java message.java
package server;
import java.util.HashSet;
public class Message {
private String strmsg;
private int count;
private String strform;
HashSet users;
public Message(String strmsg,String st