HashTable實例
public class HashTable_msg {
public HashTable_msg()
{
string sum_sql="select mobilenum,count(*) from SJSJ_Msg where (left(in_date,6)=(select left(CONVERT(varchar(12) , getdate(), 112 ),6)))group by mobilenum"
Hashtable<string,Integer> ht = new Hashtable<string,Integer>()
try{
ResultSet rs= DBAccess.getInstance().select(sum_sql)
while(rs!=null)
{
ht.put(rs.getstring(1),rs.getInt(2))
rs.next()
}
}
catch (Exception e)
{
Logs.printError(e)
}
}
}
標(biāo)簽:
HashTable_msg
public
HashTable
sum_sql
上傳時間:
2014-12-07
上傳用戶:a6697238
Learn how to:
*
Tokenize a null-terminated string
*
Create a search and replace function for strings
*
Implement subtraction for string objects
* Use the vector, deque, and list sequence containers
*
Use the container adaptors stack, queue, and priority_queue
* Use the map, multimap, set, and multiset associative containers
*
Reverse, rotate, and shuffle a sequence
*
Create a function object
*
Use binders, negators, and iterator adapters
*
Read and write files
*
Use stream iterators to handle file I/O
*
Use exceptions to handle I/O errors
*
Create custom inserters and extractors
*
Format date, time, and numeric data
* Use facets and the localization library
*
Overload the [ ], ( ), and -> operators
*
Create an explicit constructor
*
And much, much more
標(biāo)簽:
null-terminated
Tokenize
Create
string
上傳時間:
2014-01-18
上傳用戶:yph853211