Hi, While I was trying to check different possibilities related to Inner Classes, I tried this code & it can be compiled with S.O.P. Statement inside the inner class? Compiler gives error message as 'identifier expected'?? I am not able to decide the reasoning behind it? Please help...
I have modified your code slightly.See if this is what you meant to do... You have not declared the variable i2 in your last SOP statement, which was giving you the error.
Thanx Lakshmi [This message has been edited by lakshmi nair (edited October 27, 2000).]
The error must be because the System.out.println(m2 ); was directly under the class instead of being in a method. [This message has been edited by Mary Anitha (edited October 27, 2000).]
Lakshmi, This code is actually a part of a bigger code. I had declared i2 in the Package Level Class. Thanks anyway... Mary & Suresh, Thanks for pointing out the obvious mistake. I guess, after a while I suffer from attacks of Code Blindness!
Regular
Don't get me started about those stupid light bulbs.