b6부터 b25까지 반복문으로


setForegorund(Color.RED); 처리를 해주려고하는데;;;


반복문을 어떻게 써야할지 모르겠어


for (int i=6 ; i<25 ; i++);

OO.setForegorund(Color.RED);


이런식으로 해야되는디... 배열을 써야하나??


배열을 써서 

Button[] b = new Button[25];

for (int i = 6; i < b.length; i++) {

b[i].setForeground(Color.BLUE);

}


이런식으로 줬는데 에러가나서 도와주십쇼 ㅜㅜ