This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Head First Java Code Magnets Chapter 3 Q Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Head First Java Code Magnets Chapter 3 Q" Watch "Head First Java Code Magnets Chapter 3 Q" New topic
Author

Head First Java Code Magnets Chapter 3 Q

andrew dale
Ranch Hand

Joined: Aug 15, 2011
Posts: 45
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!


You'll never achieve your goals if you don't take that chance, so go pry open that trunk and get those amps.
Raymond Tong
Ranch Hand

Joined: Aug 15, 2010
Posts: 230
    
    2

y is incremented by 1 in each iteration which gives
suryakanta sahoo
Greenhorn

Joined: Aug 20, 2011
Posts: 5
Simplified code
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Head First Java Code Magnets Chapter 3 Q
 
Similar Threads
Increment operator question in Chapter 4
Book Answer vs JVM, Same Code Different Output?
Head First Java Frustration!
whats wrong with my code ?
Be the compiler excercise in chap 3