객체 배열 클래스
Vector는 자바2부터 제공된 클래스이지만 일반적으로 최적화가 잘되어 있는 ArrayList를 더 많이 사용한다
Vector는 멀티 쓰레드 프로그램에서 동기화를 지원 한다
cpacity와 size는 다름 의미임
자료에 접근하는게 빠르다
ArrayList
Vector
LinkedList
import java.util.LinkedList;
public class LinkedListTest {
    public static void main(String[] args) {
        LinkedList<String> myList = new LinkedList<String>();
        myList.add("A"); //add() 공통적으로 자료를 입력하는 메서드
        myList.add("B");
        myList.add("c");
        System.out.println(myList); // toString()메서드, 요소를 보여주는역할
        myList.add(1,"D"); //index를 지정하여 입력
        System.out.println(myList);
        myList.removeLast();// 마지막 자료를 지우는 메서드(First도있음)
        System.out.println(myList);
        for(int i =0; i<myList.size(); i++){ //List들은 이렇게 index를 통해 접근가능//순서에 따라 저장하기 때문에
            String s = myList.get(i);       //나중에 배울 set은 이런게 어려움
            System.out.println(s);
        }
    }
}
add(), toString(), remove(), get()메서드를 사용할 수 있다 ( ArrayList와 비슷한 부분이네)
get()을 통해 자료에 접근할 수 있는것은 LIst인터페이스만 가능하고 Set인터페이스는 불가능한데 이유는 List인터페이스는 순차적으로 자료를 저장고 Set은 순차적으로 저장하지 않기 때문에 그렇다