aspose file tools
The moose likes Beginning Java and the fly likes Methods 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 "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: 16687
    
  19

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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Methods
 
Similar Threads
What is wrong with this code?
Craps Game Code
Problem looping back to beginning
Java Help: NullPointerException
Having problem compiling this answer