I am making a game and need a hell of alot of varibles. it is all so GUI so I need alot of Jbuttons. can I do it like something what I have below???
char[] mine=new char[3];
for(int count=0;count<10;count++){
//String add = "one"+count;
JButton mine[count] = new JButton("");
}
heres the error
C:\Documents and Settings\Adam\Desktop\work\MineSweep.java:42: mine is already defined in MineSweep()
final JButton mine[count] = new JButton("");