Search:

Type: Posts; User: GoodbyeWorld

Search: Search took 0.07 seconds.

  1. Replies
    12
    Views
    899

    Re: Simple question- nonstatic variable?

    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...
  2. Replies
    12
    Views
    899

    Re: Simple question- nonstatic variable?

    It goes away if you make the class Tutorial2 static. Why the entire class has to be static, I'm not totally sure myself.
Results 1 to 2 of 2