To add elements to a Map you call its put() method. Here are a few examples: Map<String, String> map = new HashMap<>(); map.put("key1", ...
確定! 回上一頁