It is pretty simple, actually while(iterator.hasNext()){ if(collection2.contains(iterator.next())) System.out.println("duplicate"); }.
確定! 回上一頁