Studyon Minte9.com
Java SE




Remove item




package testexample; import java.util.ArrayList; import java.util.Collections; public class Testexample { public static void main(String[] args) { String[] ss = {"Zero", "One", "Two"}; ArrayList<String> sss = new ArrayList<String>(); Collections.addAll(sss, ss); sss.remove(1); for(String item : sss) { System.out.println(item); } //Outputs: Zero, Two } }
 


http://stackoverflow.com/questions/7940337/remove-a-specific-string-from-an-array-of-string