non static method cannot be referenced from a static context.
- by David
First some code:
import java.util.*;
...
class TicTacToe
{
...
public static void main (String[]arg)
{
Random Random = new Random() ;
toerunner () ; // this leads to a path of methods that eventualy gets us to the rest of the code
}
...
public void CompTurn (int type, boolean debug)
{
...
boolean done = true ;…