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
1052 CHAPTER 14 An Introduction to Data Structures
Troubleshooting
If your method implementation does not animate or animates incorrectly,
check these items:
Check the feedback in the window to see if your code gives the cor-
rect result.
Verify that you updated the value of top correctly.
Verify that you correctly coded the cases where the stack is full
(push method) and the stack is empty (pop method).
DISCUSSION QUESTIONS
1. Explain how the array elements above the index top can have assigned values,but
are still irrelevant.
2. Explain what happens if you do not test whether the stack is empty in the pop
method or full in the push method.
?
14.7 Array ...
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