ArrayList entfernen Sie den Namen in Java
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