A Map combines two collections, called keys and values. import java.util.HashMap; import java.util.Map; public class MainClass { public static void main(String[] argv) { Map map = new HashMap(); map.put("key", "value"); System.out.println(map); } }
{key=value}