알고리즘 (1) 썸네일형 리스트형 cannot instantiate the type list List는 interface이므로, 생성자로 선언이 되지 않음 구현체(클래스)인 LinkedList나 ArrayList로 선언 필요 예시) @SuppressWarnings("rawtypes") private List list; @SuppressWarnings("rawtypes") public ListInstantiateExample() { list = new LinkedList(); } 이전 1 다음