Programming with Java, part 4
1.About List of collection classI will talk about frequently used collection classes from theutility "java.util" provided by Java. This time about List.In the List, the elements are arranged in order.If you want to use an array, you need to specify the numberof elements in advance, but in the case of List, you can useList without specifying it.There are two types of List, "ArrayList" and "LinkedList".The program below uses ArrayList.------------------------- ListTest.java -----------------------------------------import java.util.*;
public class ListTest {
public static void main(String args[]) throws Exception{
ArrayList<String> list = new ArrayList<String>();
// Measureme
0