This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Rules Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Rules Question" Watch "Rules Question" New topic
Author

Rules Question

Mike Cunningham
Ranch Hand

Joined: Nov 14, 2000
Posts: 129
The following code will not compile. I suspect it's because we can't have nested/inner methods? But I'm not sure.....let me know your thoughts.

Valentin Crettaz
Gold Digger
Sheriff

Joined: Aug 26, 2001
Posts: 7610
that's right nested methods are not allowed.
What does the compilation says ???
HIH

------------------
Valentin Crettaz
Sun Certified Programmer for Java 2 Platform


SCJP 5, SCJD, SCBCD, SCWCD, SCDJWS, IBM XML
[Blog] [Blogroll] [My Reviews] My Linked In
Mike Cunningham
Ranch Hand

Joined: Nov 14, 2000
Posts: 129
The compiler output is expecting a ";" right after "getFieldSeven".
So, basically it says, "Don't you want to declare a variable? That's what I thought! So, pick up your book, Mike, and learn JAVA so you can get certified!!!"
Valentin Crettaz
Gold Digger
Sheriff

Joined: Aug 26, 2001
Posts: 7610
You got it Mike.
Keep it up
------------------
Valentin Crettaz
Sun Certified Programmer for Java 2 Platform
 
Don't get me started about those stupid light bulbs.
 
subject: Rules Question
 
Similar Threads
Help Creating Class
how to return an array from a method
Programming to interface but need access to implementation for persistence
How i can set a variable
Core java