• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Head First 2nd edition Hobbits

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 :-)
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving to Java in General (beginners)...
 
Ranch Hand
Posts: 624
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic