[CODE=java]
package test;
import java.util.Array List;
public class MyArrayList{
public static void main(String args[])
{
ArrayList al = new ArrayList();
al.add("Jerald" );
al.add("PJerald ");
al.add(1);
}
}
[/CODE]
I compiled my code as follows. It scold some thing that i dont know..
[$ ~]$ javac MyArrayList.jav a -d .; java test.MyArrayLis t
Note: MyArrayList.jav a uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
package test;
import java.util.Array List;
public class MyArrayList{
public static void main(String args[])
{
ArrayList al = new ArrayList();
al.add("Jerald" );
al.add("PJerald ");
al.add(1);
}
}
[/CODE]
I compiled my code as follows. It scold some thing that i dont know..
[$ ~]$ javac MyArrayList.jav a -d .; java test.MyArrayLis t
Note: MyArrayList.jav a uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Comment