I have a csv file of 2 column. I`m trying to create a hash table for each dimension - only add a value if I haven't seen it before. I want to create 2 separate hash table for every column. columns contain string and numeric value. From the class definition i found containsKey(Object key) methoid Tests if the specified object is a key in this hashtable. i can explain a bit detail like my csv file may look like as below
New York, 50 Sydney, jessi california, 10 New York, 10 so for column 1 New york came 2 in hash table i`d like to put key New York and value 2
can anyone help me how can i create a hash table like this way using java hashtable class, or maintain a separate array
HashTable(and classes it descends from). This is not a code-generation site, you know.