package Demo01;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;
public class Uncle {
public static void main(String[] args){
String [] str ={""};
List list = Arrays.asList(str);
System.out.println(list);
ArrayList alist =new ArrayList<>(Arrays.asList(str));
alist.add("haha");
System.out.println(alist);
alist.remove("ABC");
System.out.println(alist);
LinkedList llist =new LinkedList<>(Arrays.asList(str));
llist.add("haha");
System.out.println(llist);
llist.remove("ABC");
System.out.println(llist);
Object[] temp = llist.toArray();
for ( Object o : temp){
System.out.println( o +"\t");
}
}
}