class Test {
public static void main( String[] args ) {
List list = new ArrayList( 3 ); //1
list.add( new Integer( 100 ) );
list.add( new Integer( 200 ) );
list.add( new Integer( 300 ) );
list.add( new Integer( 400 ) ); //2
System.out.println( list.size() ); //3
}
}
Login in to like
Login in to comment