CollegeTester.java:10: error: non-static method getCommand() cannot be referenced from a static context
getCommand();//goes to command
^
How would I enter this method. Making it public static void
only causes more problems
import java.util.Scanner;
public class CollegeTester
{
public String name;
Scanner input = new Scanner(System.in);
public static void main(String[] args)
{
getCommand();//goes to command
}
//Ask user for a command
public void getCommand()
{
// do stuff
}
}