I have a code, and I'm having a little problem with it.
public class Out {
int value = 7;
void print() {
int value = 9;//how to access this variable
class Local {
int value = 11;
void print() {
int value = 13;
System.out.println("Value in method: " + value);
System.out.println("Value in local class: " + this.value);
System.out.println("Value in method of outer class: " + value);//here
System.out.println("Value in outer class: " + Out.this.value);
}
}
}
}
The code above describes my problem.