ch09Sections1-5 - 9.10 Exercises, Problems, and Projects...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
9.10 Exercises, Problems, and Projects 9.10.1 Multiple Choice Exercises 1. int[][] a; and int a[][]; 2. true 3. false 4. false 5. a[2][4] 6. a.length 7. a[2].length 8. true 9. true 10. true 11. We don't need to do anything; capacity expands automatically as needed 12. at the end of the list 13. java.util 9.10.2 Reading and Understanding Code 14. 4 15. Ajaccio 16. 3 17. row 0 and column 3 18. Vancouver 19. Munich Stuttgart Berlin Bonn 20. LA Stuttgart Ajaccio Ottawa 21. New York LA San Francisco Chicago Munich Stuttgart Berlin Bonn Paris Ajaccio Lyon Montreal Ottawa Vancouver 22 .Munich Berlin Ottawa 23. count is 2 24. San Francisco Stuttgart 25. It counts and returns the number of elements in the argument array a 26. It returns true if all the rows of the argument array a have the same number of columns; otherwise, it returns false . 27. It returns the number of rows in the argument array a AF_CH08 Page 1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
28. It returns an int array of the same length as the length of the array argument a . Each element of the returned array stores the number of columns of the corresponding row in the array argument a . 29. It returns the number of elements in the
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 4

ch09Sections1-5 - 9.10 Exercises, Problems, and Projects...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online