Pl help me out to run this program or how to access variable y inside the X1 class of a1 package
There is no variable 'y' in X1 class. It exists in AA class.
If you want to access 'y' from X1 in the show method, you can do it by AA.y. For this to work you will have to declare 'y' as public static though.
"R.Joe",
Please choose your forums
carefully.
Nothing UI related here.
Moving.