Sudoku Generator in Java

Sudoku  is a logic based, combinatorial  number-placement puzzle [wikipedia]. I just created a sudoku number generator in java console.You can also use this method for generating sudoku numbers easily in GUI. I used a easy approach for generating sudoku numbers.I use this project mainly for making a simple generator.This is working fine.Voila!

Check it on https://ideone.com/rbHDGh.

UPDATE : Created Open Source Android App

The values [1-9] are arranging random order from 1st row to 9th row.It will also checks after 3 row.

Algorithm

1) Start from Main Function,Create a Arraylist variable,ar for our temperory row value.

2) Initialize 9X9 array,bs[][], this will be our sudoku matrix :)

3) Add values to arraylist using loop and shuffle these values in ArrayList.

4) Assign values from arraylist to array,bs[][]

5) Initialize a boolean variable check.

6) Create  another function Checkpath(),which will return if the next values generated is sudoku order or not to check.

7) Checker() will return if its true sudoku number or not.

Program:


I think this will help  someday for somebody  and you can use this code with no license or anything like that.

COMPLETELY COPYLEFT ,do want you want :)

YOU CAN ALSO CHECK MY OTHER java project : AI based Tic-Tac-Toe using Minimax Algorithm

Please comments if there is any issues.