public class Triangle { public static void main (String[] argv) { int[][] A = { {1}, {2, 1}, {3, 2, 1}, {4, 3, 2, 1}, {5, 4, 3, 2, 1} }; print (A); } static void print (int[][] A) { // The number of rows is still A.length. for (int i=0; i