We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Map<String, Integer> map = new HashMap<>(); map.put("010", 2); map.put("016", 1); map.put("011", 3); List<String> keys = map.entrySet() .stream() .filter(e -> e.getValue() > 1) .map(Map.Entry::getKey) .collect(Collectors.toList()); for (String s : keys) { System.out.println(s + ", " + map.get(s)); } // 011, 3 // 010, 2
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Map<String, Integer> map = new HashMap<>(); 에서 value가 2 이상인 데이터(중복)에 대한 key를 List로 리턴
The text was updated successfully, but these errors were encountered: