import java.util.ArrayList;
public class RawArrayList {
public static void main(String[] args) {
ArrayList<Object> list=new ArrayList<Object>();
list.add(1);
list.add(2.0);
list.add("Hello");
list.add('a');
for(Object o:list)
{
System.out.println(o);
}
}
}
public class RawArrayList {
public static void main(String[] args) {
ArrayList<Object> list=new ArrayList<Object>();
list.add(1);
list.add(2.0);
list.add("Hello");
list.add('a');
for(Object o:list)
{
System.out.println(o);
}
}
}
0 comments:
Post a Comment