Esempio banalissimo:
codice:List<String> list1 = Arrays.asList ("a", "f", "k", "m"); List<String> list2 = Arrays.asList ("f", "m"); System.out.println (list1.containsAll (list2));
Esempio banalissimo:
codice:List<String> list1 = Arrays.asList ("a", "f", "k", "m"); List<String> list2 = Arrays.asList ("f", "m"); System.out.println (list1.containsAll (list2));
Andrea, andbin.dev – Senior Java developer – SCJP 5 (91%) • SCWCD 5 (94%)
java.util.function Interfaces Cheat Sheet — Java Versions Cheat Sheet