This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Java Error can any one help Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Java Error can any one help" Watch "Java Error can any one help" New topic
Author

Java Error can any one help

benz spida
Greenhorn

Joined: Jun 22, 2006
Posts: 6
I keep getting this java error (inner class cannot have static declarations ) dont know why I just started learning Java dont know what im doing wrong. Thanks

Shashi Kant
Ranch Hand

Joined: Aug 08, 2006
Posts: 117
hi

you are declaring the two static object of String class inside inner calss.
i.e. greeting and name.
try declaring that in outer calss.
so you will not get that error


If it's true that we are here to help others, then what exactly are the others here for?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java Error can any one help
 
Similar Threads
java codin help
Is This program wrong according to Java?
JAva help
How to not reinialize tables created with JPA?
SCJP Brainteaser (6)