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
9.10 Exercises,Problems,and Projects 635
EXERCISES,PROBLEMS, AND PROJECTS
ArrayList<Integer> a = new ArrayList<Integer>( );
a.add( 7 );
a.add( 4 );
a.add( 21 );
a.set( 1, 45 );
32. After the following code sequence is executed, what are the contents
and index of each element of a?
ArrayList<Integer> a = new ArrayList<Integer>( );
a.add( 7 );
a.add( 4 );
a.add( 21 );
a.add( 1, 45 );
9.10.3 Fill In the Code
For Questions 33 to 37, consider the following statement:
String [][]geo = {{”MD“, ”NY“, ”NJ“, ”MA“, ”ME“, ”CA“, ”MI“, ”OR“ },
{ ”Detroit“, ”Newark“, ”Boston“, ”Seattle“ }};
33. This code prints the element at row index 1 and column index 2 of
the two-dimensional ...
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