public class Sample{
private ArrayList List = null
pricate List List2 = null
Sample(){
List = new ArrayList();
List2 = new ArrayList();
}
Cannot invoke "java.util.ArrayList.add(Object)" because "this.List" is null
이거 class 전역변수에 null치우면 되는데 그냥 List로 선언한건 에러 안나고 ArrayList로 선언한건 에러 나는데 그 이유가 이유가 머냐..