package gui;
public class Solver {
void solveIt(){
CubeGui.moveThat();
}
}
I am trying to access method moveThat from this class, but it keeps telling me cant access non static method moveThat from a static reference. I don’t see how this is a static reference?
To expand on one of my comments left on Konrad Rudolph‘s answer…
My guess is that your
CubeGuiclass declaration looks something like this:It should look like this (notice the static reference on the
moveThatmethod):Or you need the implementation of
Solverto look like this: