Skip to Main Content
Java 6 Illuminated: An Active Learning Approach, 2nd Edition
book

Java 6 Illuminated: An Active Learning Approach, 2nd Edition

by Julie Anderson, Herve J. Franceschi
February 2008
Intermediate to advanced content levelIntermediate to advanced
1288 pages
39h 39m
English
Jones & Bartlett Learning
Content preview from Java 6 Illuminated: An Active Learning Approach, 2nd Edition
Take care to avoid compro-
mising the encapsulation
of your linked list.Do not
return an object reference
to an item still on the list.
Return a reference to a
copy of that item.
SOFTWARE
ENGINEERING TIP
1030 CHAPTER 14 An Introduction to Data Structures
The peek method is coded at lines 5980. We traverse the list in the same
way as the delete method, except that because we will not delete a node, we
do not need to mark the node before current.
If we do not find a node containing a Player whose id is searchID, we throw
an exception at lines 7475. If we find one, we return a copy of the Player
object contained in that node at line 78 so that we do not br ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

JFC Swing Tutorial, The: A Guide to Constructing GUIs, Second Edition

JFC Swing Tutorial, The: A Guide to Constructing GUIs, Second Edition

Kathy Walrath, Mary Campione, Alison Huml, Sharon Zakhour
Java Illuminated, 4th Edition

Java Illuminated, 4th Edition

Julie Anderson, Hervé J. Franceschi

Publisher Resources

ISBN: 9780763749637