Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

arraylist remove name 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]
 
PREVIOUS NEXT
Tagged: #arraylist #remove #java
ADD COMMENT
Topic
Name
7+5 =