aspose file tools*
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
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Head First Java Code Magnets Chapter 3 Q