Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

print map in java

Map<String, Integer> map = new HashMap<>();
map.put("a", 1);
map.put("b", 2);
System.out.println(Arrays.asList(map)); // method 1
System.out.println(Collections.singletonList(map)); // method 2
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #print #map #java
ADD COMMENT
Topic
Name
7+3 =