aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes illegal start of expression Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "illegal start of expression" Watch "illegal start of expression" New topic
Author

illegal start of expression

saloni jhanwar
Ranch Hand

Joined: Feb 09, 2012
Posts: 583

I have been tired to find the reason for illegal start of expression help



Tell the difficulties that i am difficult.
gurpeet singh
Ranch Hand

Joined: Apr 04, 2012
Posts: 924
    
    1

the compareTo() method should be declared outside the main method. i remember this happening to me many times and pulling my hairs when i realised the mistake.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10288
    
169

saloni jhanwar wrote:I have been tired to find the reason for illegal start of expression help


That compile time error would also show the line number where this is happening. Have you checked that specific line and code around it? Hint: Pay attention to the line where the implementation of compareTo method has started.

[My Blog] [JavaRanch Journal]
saloni jhanwar
Ranch Hand

Joined: Feb 09, 2012
Posts: 583

gurpeet singh wrote:the compareTo() method should be declared outside the main method. i remember this happening to me many times and pulling my hairs when i realised the mistake.


ouch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: illegal start of expression