Remove specific string from arraylist elements containing a particular subsrtring

后端 未结 5 620
我寻月下人不归
我寻月下人不归 2021-01-24 15:00

Here is my code for arrayList ,

 String[] n = new String[]{\"google\",\"microsoft\",\"apple\"};
      final List list =  new ArrayList

        
5条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-24 16:03

    Part of javadoc for List:

    /**
     * Removes the first occurrence of the specified element from this list,
     * if it is present (optional operation).  If this list does not contain
     * the element, it is unchanged...
    boolean remove(Object o);
    

    I hope this is what you are looking for.

提交回复
热议问题