Forums Register Login

Head First 2nd edition Hobbits

+Pie Number of slices to send: Send
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 :-)
+Pie Number of slices to send: Send
Moving to Java in General (beginners)...
+Pie Number of slices to send: Send
Ted,

Can you post the error messages you are getting and your code (inside[code] [/code] tags). Then someone can help you out.
+Pie Number of slices to send: Send
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 ]
brevity is the soul of wit - shakepeare. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 563 times.
Similar Threads
Correcting an array error
Head First Java 2nd Ed. Correction?...
Array Out of Bounds Exception
Be the compiler excercise in chap 3
What´s the difference?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 03:01:16.