2-23 Scope

posted Jan 24, 2014, 4:29 AM by Dlovan ismail   [ updated Jan 24, 2014, 4:29 AM by Karwan Jacksi ]
// 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;
    }  
}

ċ
Scope.java
(0k)
Karwan Jacksi,
Jan 24, 2014, 4:29 AM
Comments