Abhijit Rayarikar

Greenhorn
+ Follow
since Mar 21, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Abhijit Rayarikar

Ego,
You dont have to declare " new LocalclassDemo().new Local()" since the only variable in LocalclassDemo that you are acessing is static, so it does not make any difference if the outer class has been instantiated or not.
If that was not static, then you would be right.. you would have to declare it as " new LocalclassDemo().new Local()".
-Abhijit
Inner classes can be declared static. A static inner class does not require an object of it's outer class to be defined.. however, a static inner class does not have access to the non-static members of the outer class.
Denish,
The arguments for draw3DRect are:
g.draw3DRect(int x, in y, int rectWidth, int rectHeight, boolean b);
So you have too many values in your example.. that is why it is giving you the error.
-Abhijit