Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

hashmap declare and initialize with values in 1 line java


Java:
new HashMap<String, String>() {{ put("Key", "Value"); }};
 
PREVIOUS NEXT
Tagged: #hashmap #declare #initialize #values #line #java
ADD COMMENT
Topic
Name
6+9 =