I am trying to call a non-static method from one file to another, but I am getting the error Cannot find symbol.
Code in TestFile
package project2;
public class TestFile{
private boolean[ ][ ] edges;
public void test(int x, int y){
edges[x][y] = true;
}
}
The code in the main file in which I am trying to using the method
package project2;
public static void main(String[] args){
TestFile test = new test();
}
I have tried changing parts of the code but I am unable to fix it. I cannot change the code in the TestFile so it's something wrong on my end.