All pastes #2087563 Raw Edit

Anonymous

public text v1 · immutable
#2087563 ·published 2011-10-07 10:50 UTC
rendered paste body
import 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);
	}
	
}