import javax.swing.*; /** * This class.... * * @author Bill Kukowski */ class arrayTest { /** * Main method. * * @params args */ public static void main(String[] args) { int[][] fractionGroup1 = new int[2][10]; for (int r=0;r<1;r++) { for (int c=0;c<9;c++) { fractionGroup1[r][c] = ( (int) (Math.random() * 9) + 1 ); } } String row1 = ""; String row2 = ""; for (int j=0;j<10;j++) { row1 += fractionGroup1[1][j] + " "; } for (int k=0;k<10;k++) { row2 += fractionGroup1[2][k] + " "; } System.out.println( row1 ); System.out.println( row2 ); } }