Hi,
I'm having trouble in populating HashTable.
I need to create a hashtable with values
Carrier SpeedyAir
Origin DEN
Destination SFO
using
string criteria = "Carrier=SpeedyAir,Origin=DEN,Destination=SFO"
public void criteriaFind(String criteria) throws DatabaseException{
HashTable ht = new HashTable();
StringTokenizer tokens1 = new StringTokenizer(criteria,",");
while(tokens1.hasMoreTokens()) {
StringTokenizer tokens2 = new StringTokenizer(tokens1.nextToken(),"=");
while(tokens2.hasMoreTokens()) {
// Put records in HashTable
}
}
}
Thanks
Dilip