Yes, at first I didn't see that it was part of a separate class and thought it was just another method of the same class.
It compiles if you do this:
import java.util.Scanner;
public...
Type: Posts; User: GoodbyeWorld
Yes, at first I didn't see that it was part of a separate class and thought it was just another method of the same class.
It compiles if you do this:
import java.util.Scanner;
public...
It goes away if you make the class Tutorial2 static. Why the entire class has to be static, I'm not totally sure myself.