i need to store non unique key value pair like in an application which can only be compiled with java 1.4. It should look like :
{"key1"=>"value1",
"key2"=>"value2",
"key3"=>"value3",
"key3"=>"value4"
}
thanks in advance
i need to store non unique key value pair like in an application which can only be compiled with java 1.4. It should look like :
{"key1"=>"value1",
"key2"=>"value2",
"key3"=>"value3",
"key3"=>"value4"
}
thanks in advance
In core java, I think you are stuck with storing arrays or lists as the values of a Map interface (hashmap). You might also consider answers here: Map implementation with duplicate keys
What are the semantics of asking for a duplicate key?