Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Head First 2nd edition Hobbits

 
Ted Kaz
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
author
Sheriff
Posts: 14112
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to Java in General (beginners)...
 
Mark Vedder
Ranch Hand
Posts: 624
IntelliJ IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ted,

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
Posts: 3061
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Layne
[ March 14, 2005: Message edited by: Layne Lund ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic