제네릭스의 형식
public class 클래스명<T> {...}
public interface 인터페이스명<T> {...}
자주 사용되는 타입인자 약어
== Type
== Element
== Key
== Value
== Number
== Result
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
public class Main {
public static void main(String[] args) {
List<String> list = new ArrayList();
Collection<String> collection = list;
}
}