store value with key and value in android code example
Example: android key value pair
Map myMap = new HashMap();
Iterator> iterator = myMap.entrySet().iterator();
while (iterator.hasNext()) {
Map.Entry pairs = (Map.Entry)iterator.next();
String value = pairs.getValue();
Integer key = pairs.getKey();
System.out.println(key +"--->"+value);
}