Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Map put() method

Map<String, String> map = new HashMap<String, String>();  // Make an empty map

  map.put("es", "Spain");  // Add the key/value pairs
  map.put("us", "United States");
  map.put("zw", "Zimbabwe");
Source by codingbat.com #
 
PREVIOUS NEXT
Tagged: #Map #method
ADD COMMENT
Topic
Name
8+5 =