Prior to Java 8 we would have to do something like this: Map<String, Integer> map = new HashMap<>(); for(String word : words) { if(map.
確定! 回上一頁