In Javascript we can store values in array like
var arr=[];
arr["name"]="test";
arr["value"]="result";
console.log(arr["name"]);
above mentioned array is storing values like key value pair,my question is this we can achieve in java without using hashmap ? so that we can get value by key in java
HashMap.