File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Head First 2nd edition Hobbits Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Head First 2nd edition Hobbits" Watch "Head First 2nd edition Hobbits" New topic

Head First 2nd edition Hobbits

Ted Kaz

Joined: Mar 09, 2005
Posts: 3
When doing the Hobbits be the compiler exercise my solution to get it to compile and provide output for all three hobbits name leaves me perplexed.
It did compile with a variety of errors but threw main exceptions. My Array length and the amount of arrays I use are not the same, so wouldn't this be a null reference? Mr Reference gets upset but this :-)
Ilja Preuss

Joined: Jul 11, 2001
Posts: 14112
Moving to Java in General (beginners)...

The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Mark Vedder
Ranch Hand

Joined: Dec 17, 2003
Posts: 624


Can you post the error messages you are getting and your code (inside[code] [/code] tags). Then someone can help you out.
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
I don't own a copy Head First Java. I'd love to help you, but as suggested above, you need to post the code you are trying to compile and the EXACT error messages you recieve.

On a bit of terminology: when you get compiler errors, it is not correct to say "it compiled" because in common programming parlance this implies that there were no errors.

[ March 14, 2005: Message edited by: Layne Lund ]

Java API Documentation
The Java Tutorial
I agree. Here's the link:
subject: Head First 2nd edition Hobbits
It's not a secret anymore!