日期:2014-05-20 浏览次数:20710 次
class Test
{
static finall HashTable<String, String> table = initialHashTable();
public Test()
{
}
public void useHashTable()
{
//这里使用table
table.getValue("123");
}
static HashTable<String, String> initialHashTable()
{
HashTable<String, String> ht = new hashTable<String, String>();
ht.put("123", "abc");
ht.put("456", "dfe");
return ht;
}
}