ArrayList Usuń nazwę w Javie
public static void main(String[] args) {
ArrayList<String> names = new ArrayList<>(Arrays.asList("Ahmed", "John", "Eric", "Ahmed"));
names.removeAll( Arrays.asList("Ahmed"));
System.out.println(names); // [John, Eric]
Ozzzy