import javax.swing.*; public class klasa { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub String txt; int n; do{ do{ txt=JOptionPane.showInputDialog("n="); }while(txt==null||txt.isEmpty()); n=Integer.parseInt(txt); }while(n<2|n>5); //wypelnieine tablicy int[][] tab = new int[n][n]; for(int i=0;i