package study;
import java.util.ArrayList;
import java.util.Collection;
public class Demo {
public static void main(String[] args) {
Collection c=new ArrayList();
c.add(“lele”);
c.add(“danie”);
c.add(“java”);
System.out.println(c.contains(“danie”));
if(!c.isEmpty())
c.remove(“lele”);
Object[] objs=c.toArray();
for(int i=0;i<c.size();i++){
System.out.println(objs[i]);
}
}
}