/*This is just an annotated version of something that came up *during 'consultation time'. *It's to help illustrate the notion of an 'array of arrays'. *Note that it's a bit on the tricky side, so it's okay if it *seems a bit wonky. */ public class Puzzle { public Puzzle() { /*We can hard-code multidimensional arrays, but I wouldn't say it's * common for values. * A more common use case might be, say, for labels * (i.e. several sets of Strings) *In this case, the array is: * 1 2 3 4 * 7 * 9 5 */ int[][] arr={{1,2,3,4}, {7}, {9,5}}; System.out.println("Before:"); display(arr); System.out.println("\n"); //This looks vaguely like it's rotating the rows, but is it? for (int i=1; i