All pastes #445896 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-04-18 04:27 UTC
rendered paste body
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<2;r++)
		{
			for (int c=0;c<fractionGroup1[0].length;c++)
			{
				fractionGroup1[r][c] = ( (int) (Math.random() * 9) + 1 );
			}
		}
		
		String row1 = "";
		String row2 = "";
		
		for (int j=0;j<fractionGroup1[0].length;j++)
		{
			row1 += fractionGroup1[0][j] + " ";
		}
		
		for (int k=10;k<fractionGroup1[1].length;k++)
		{
			row2 += fractionGroup1[1][k] + " ";
		}
		System.out.println( row1 );
		System.out.println( row2 );	
			
	}
}