[ java ] in KIDS 글 쓴 이(By): Zaharang ( 고소영) 날 짜 (Date): 1999년 8월 20일 금요일 오후 05시 35분 46초 제 목(Title): Re: [Q]초기화 예제. static long[] table = new long[20]; static table[0] = 1; - Can't specify array dimension in a declaration. 말 그대로 선언과 동시에 배열 디멘션을 위와 같이 할 수 없기때문입니다. 위에 table을 선언했으면 아래와 같은 값의 할당은 method block의 내부에서 하는 것이 정상입니다. totally 잘못된 문장이로군요.... :-) |