Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

map java

Map<Integer,String> map=new HashMap<>();
map.put(1,"john");
map.put(2,"kale");
for(Map.Entry<Integer,String> x:map.entrySet()){
System.out.println(x.getKey());
System.out.println(x.getValue());
}
 
PREVIOUS NEXT
Tagged: #map #java
ADD COMMENT
Topic
Name
2+8 =