Forums Register Login

Head First Java Code Magnets Chapter 3 Q

+Pie Number of slices to send: Send
Head First Java Code Magnets Chapter 3 Q

Ok, so thanks to everyone contributing to all my questions... I got my first I guess you can call it quiz, from the book CORRECT ! (Woohoo!)

Now I understand most of the code except for 1 little part, ill post the whole thing and have the question at the bottom.



I got it first Try!!!

Anyway the problem I don't understand is
ref = index[y].... I know it's linking to a lot of other things, but I just can't understand it!

If someone can explain everything that it is doing it would be very helpful, thank you!
1
+Pie Number of slices to send: Send
y is incremented by 1 in each iteration which gives
1
+Pie Number of slices to send: Send
Simplified code
Paper beats rock. Scissors beats 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 2088 times.
Similar Threads
Stuck on something with arrays
Book Answer vs JVM, Same Code Different Output?
Head First Java Frustration!
Be the compiler excercise in chap 3
Code not working
More...

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