|
UC Santa Cruz - FALL 13 | ||
Section 01 | ||
Java by Dissection (2nd Edition) by Charlie Mcdowell, Ira [Contributor] Pohl Paperback, 468 Pages, Published 2006 ISBN-10: 1-4116-5238-X / 141165238X ISBN-13: 978-1-4116-5238-5 / 9781411652385 Charlie McDowell, Ira Pohl. int[][] a = {{1, 2}, {3, 4}, {5, 6}}; int[][] b = {{1, 2, 3}, {4, 5, 6}}; int[][] c = {{1, 2, 3, 4, 5, 6}}; int[][] ragged = {{1,2}, {3, 4, 5}, {6}}; As this example shows, in Java we can create a two-dimensional array that isn't rectangular. That is, the number of ele |