All pastes #481815 Raw Edit

Someone

public text v1 · immutable
·published 2007-05-11 00:20 UTC
rendered paste body
class Matriz {

		int valores [][] = new int [10][10];


		public Matriz ()

		{
			this.generaValores();
		}

		public int getValor(int i, int j)
		{
			return valores[i][j];
		}


		private void generaValores()
		{

			Random rm;

			for (int i=0 ; i<=9 ; i++){
				for (int j=0 ; j<=9 ; j++){
					rm = new Random();
					valores[i][j] = rm.nextInt(10)+1;

					}
				}

		}


}