ok heres the code im working with..
public boolean legalMove(int row, int column)
{
if (a.empty(row, column) == true)
{
System.out.println("This sqaure is empty");
return false;
}
}
now my empty method header looks like ..
public boolean empty(int row, int column)
and the code inside for empty() works. now in the method legalMove(), i have a.empty(row, column) and when i go to compile it it says "cannot find symbol - method empty(int, int)". a is a 2d array.
why is this? how come i cant call empty() inside of legalMove(), they are both within the same class. any help appreciated. theres a seperate driver class too, but that shoulden't matter.