wood burning stoves 2.0*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes please tell me what is wrong in my code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "please tell me what is wrong in my code" Watch "please tell me what is wrong in my code" New topic
Author

please tell me what is wrong in my code

maggie karve
Ranch Hand

Joined: Dec 29, 2009
Posts: 186
i am getting compile error when trying to add elements
Wouter Oet
Saloon Keeper

Joined: Oct 25, 2008
Posts: 2700

The code in FirstGrade is not in a method


"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
Phungsuk Wangdu
Ranch Hand

Joined: Nov 04, 2009
Posts: 114
Well I think the reason is as suggested by Wouter Oet that is the absence of main method..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: please tell me what is wrong in my code
 
Similar Threads
K&B chapter 7 question 15. Collections.
Dog is not abstract and does not override abstract method
Doubt in Collection
Illegal start of expression compilation error
Doubt in Comparable interface