Is there a more simplified way to do the following?
Map<String, String> map = new HashMap<String, String>(); map.put("a", "apple"); map.put("b", "bear"); map.put("c", "cat");
I am looking for something closer to this.
Map<String, String> map = MapBuilder.build("a", "apple", "b", "bear", "c", "cat");
source share