목차 ArrayList<Integer>로 생성했던 array를 array[i]로 인덱스 i에 해당하는 값만 추출하려고 하니까 저런 에러 메시지가 떴다 당연하게도 ArrayList에서는 대괄호를 이용해서 인덱스로 특정 값에 접근하는 건 안 되고 .get(index) 메소드를 사용해서 index에 해당하는 값을 가져와야 한다 공유하기 게시글 관리 알아두면 쓸데있는 신비한 컴퓨터 잡학사전 저작자표시 목차 목차 닫기