Can someone please provide an example of creating a Java ArrayList and HashMap on the fly? So instead of doing an add() or put()
ArrayList
HashMap
add()
put()
for short lists:
List ab = Arrays.asList("a","b");