Skip to main content
edited body
Source Link

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 yorkYork, 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

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

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

added 16 characters in body
Source Link
Brian Agnew
  • 273.3k
  • 38
  • 342
  • 443

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

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

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

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

Source Link

how to create a hash table in java

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