Anonymous
public text v1 · immutableimport javax.swing.*;
public class Klasa {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
String txt;
int [][] tab = new int [8] [8];
int [] dec=new int [8];
for (int i=0; i<8;i++) {
for (int j=0;j<8;j++) {
tab[i][j]=(int)(Math.round(Math.random()));
}
}
txt="";
for (int i=0; i<8; i++) {
for (int j=0;j<8;j++) {
txt += tab[i][j]+" ";
}
txt+="\n";
}
JOptionPane.showMessageDialog(null, txt);
}
}