intermediate/OldArrayList

From ggc

Jump to: navigation, search

01 package intermediate;
02 //start auto-imports
03 import com.sun.org.apache.bcel.internal.generic.*;
04 import java.util.*;
05 //end auto-imports
06 
07 
08 /**
09  * All about my application.
10  @author Jam Jenkins
11  */
12 public class OldArrayList
13 {
14    public static void main(String[] args)
15    {
16       ArrayList<String> list=new ArrayList<String>();
17       list.add("Hello");
18       list.add("Dolly");
19 
20 
21       String first=list.get(0);
22       System.out.println("The first is "+first);
23 
24 
25    }
26 }


Download/View intermediate/OldArrayList.java




Views
Personal tools
Add to 
del.icio.usAdd to 
diggAdd to 
FacebookAdd to 
favoritesAdd to 
GoogleAdd to 
MySpaceAdd to 
PrintAdd to 
SlashdotAdd to 
StumbleUponAdd to 
Twitter