File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 128
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: 128
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Rules Question
 
Similar Threads
Programming to interface but need access to implementation for persistence
Help Creating Class
Core java
How i can set a variable
how to return an array from a method