aspose file tools*
The moose likes Beginning Java and the fly likes Methods Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Methods" Watch "Methods" New topic
Author

Methods

Andrew Albers
Greenhorn

Joined: Feb 19, 2009
Posts: 10
Having trouble on figuring out why line 15 says illegal start of expression.






Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18896
    
  40

Having trouble on figuring out why line 15 says illegal start of expression.


The Java compiler is not expecting a method definition, within another method. Interestingly, this is not a case of mis-matched parens -- it looks like from the indents that you intended to do that (to define a method within a method).

Question is why?

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Andrew Albers
Greenhorn

Joined: Feb 19, 2009
Posts: 10
....wow cant believe i didnt see that. thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Methods