글쓴이 :윤경구 1999년 10월 11일 22:22:27
In Reply to: Array 의 값은 상수이지만 , 수식을 통하여 구하여야 하는 경우는 ?? posted by 조영호 on 1999년 10월 10일 11:36:40:
class Test {
static final int[] array = new int[10];
static { // static initializer block
for(int i=0; i<10; i++)
array[i] = (int) Math.sin(2*Math.PI*i/(2*n));
}
}