aqui dejo el codigo:
Código:
public class zudoku { static int x[][]; static int numero; public static int main(String[] args){ x= new int [9][9]; for (int i=0;i<x.length;i++){ for(int j=0;j<x[i].length;j++){ if (x[i][j]==numero) return true; return false; x[i][j]=(int)(Math.random()*10); System.out.print(x[i][j]+" "); } System.out.println(); } } }