代码搜索:HashMap
找到约 8,488 项符合「HashMap」的源代码
代码结果 8,488
www.eeworm.com/read/391696/8390105
txt day06.txt
集合:保存多个其他对象的对象,不能保存简单类型
List:有序(存放元素的顺序),可重复的集合
ArrayList:实质就是一个会自动增长的数组
查询效率比较高,增删的效率比较低,适用于查询比较频繁,增删动作较少的元素管理的集合。
加载大批量的数据时,先进行手动扩容(就是调用ensureCapacity(int minCapacity)方法),这样可以提高效率。
...
www.eeworm.com/read/391608/8395005
java tree.java
import java.io.*;
import java.util.*;
import javax.swing.tree.DefaultMutableTreeNode;
public class Tree {
final String CAT_FILENAME = ".txt";
final String KEYWORDS_FILENAME = "_key.txt";
www.eeworm.com/read/291464/8417032
txt j2ee面试习题集必备~.txt
一,谈谈final, finally, finalize的区别。
final —修饰符(关键字)如果一个类被声明为final,意味着它不能再派生出新的子类,不能作为父类被继承。因此一个类不能既被声明为 abstract的,又被声明为final的。将变量或方法声明为final,可以保证它们在使用中不被改变。被声明为final的变量必须在声明时给定初值,而在以后的引用中只能读取,不可修改。被 ...
www.eeworm.com/read/188811/8514235
java uploadcommand.java
package org.zilverline.web;
import java.util.HashMap;
import java.util.Map;
/**
* JavaBean for the upload command.
*
* @author Michael Franken
*/
public class UploadCommand {
p
www.eeworm.com/read/388997/8556209
java test68.java
import java.util.*;
public class Test68 {
public static void main(String[] args) {
NumberNames nn = new NumberNames();
nn.put("one",1);
System.out.println(nn.getNames());
}
}
class
www.eeworm.com/read/388997/8556229
java test109.java
import java.util.*;
class Test109 {
public static void main(String[] args) {
HashMap props = new HashMap();
props.put("key45","some value");
props.put("key12","some other");
Set s = prop
www.eeworm.com/read/387806/8652797
java memory.java
import java.util.HashMap;
import java.util.Map;
public class Memory {
private Map hashMap;
static long MINADDR=0x00000000;
static long DATABASE=0x00000000;
static long CO
www.eeworm.com/read/287932/8660272
cs frmaddprotocol.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Collections;
using System.Windows.Forms;
u
www.eeworm.com/read/287452/8686162
java commonbean.java
package common.beans;
import java.util.ArrayList;
import java.util.Set;
import java.util.HashMap;
import common.db.DatabaseBean;
public class CommonBean {
/**
* 以当前时间生成yyyyMMddHHmmss格式的字符串
www.eeworm.com/read/430096/8766327
java ex12(2).java
// containers/Ex12.java
// TIJ4 Chapter Containers, Exercise 12, page 833
// Substitute a HashMap, a TreeMap and a LinkedHashMap
// in AssociativeArray.java's main().
import static net.mindview.ut