2-23 Scope

Post date: Jan 24, 2014 12:29:39 PM

// This program can't find its variable.

package scope;

public class Scope

{

    public static void main(String[] args)

    {

           System.out.println(value); // ERROR!

           int value = 100;

    }  

}