Someone
public text v1 · immutableclass 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;
}
}
}
}