Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

initialize empty dictionary java

Map<String, String> map = new HashMap<String, String>();
map.put("dog", "type of animal");
System.out.println(map.get("dog"));

// prints "type of animal"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #initialize #empty #dictionary #java
ADD COMMENT
Topic
Name
3+9 =