I declared a private global field called aField.
The same variable I decalred in a method .
For example
public class Test2 {
private String aField = " aField ";
public static void main(String[] args) {
Test2 test2 = new Test2();
test2.testField();
System.out.println(test2.aField);
}
private void testField() {
String aField = "test1";
System.out.println(aField);
}
}
In the method testField if I want to access the global variable aField is
it possible ?
Thanks & Regards
Miro
---------------------------------
Access over 1 million songs - Yahoo! Music Unlimited.