You are viewing a single comment's thread. Return to all comments →
Java
Map<Integer, Integer> check = new HashMap<>(); AtomicInteger rs = new AtomicInteger(0); ar.forEach(it -> { if (check.containsKey(it)) { rs.getAndIncrement(); check.remove(it); } else { check.put(it, it); } }); return rs.get();
Seems like cookies are disabled on this browser, please enable them to open this website
Sales by Match
You are viewing a single comment's thread. Return to all comments →
Java