Here is my code for arrayList ,
String[] n = new String[]{\"google\",\"microsoft\",\"apple\"}; final List list = new ArrayList
From java 8 You can use
list.removeIf(s -> s.contains("le"));