Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Create a java code to make a Sudoku board ,9 numbered buttons from 1 to 9,and a

ID: 3679344 • Letter: C

Question

Create a java code to make a Sudoku board ,9 numbered buttons from 1 to 9,and a button called Check as same as the picture below.The user will full up the Sudoku board by clicking a numbered button.The user can then click the button Check to see if there is no duplicates numbers in a row and column.If there is duplicates mark the numbers in red so the user can change it.If there is no duplicate the color(black) of the number remains the same.Run the java code in Eclipse.The pictures below are an example on how the program must be.

Explanation / Answer

import java.util.Arrays; public class Sudoku { private byte[][] myPuzzle = new byte[][] { { 0, 0, 0, 0, 0, 0, 0, 0, 0 }, { 0, 0, 0, 0, 0, 0, 0, 0, 0 }, { 0, 0, 0, 0, 0, 0, 0, 0, 0 }, { 0, 0, 0, 0, 0, 0, 0, 0, 0 }, { 0, 0, 0, 0, 0, 0, 0, 0, 0 }, { 0, 0, 0, 0, 0, 0, 0, 0, 0 }, { 0, 0, 0, 0, 0, 0, 0, 0, 0 }, { 0, 0, 0, 0, 0, 0, 0, 0, 0 }, { 0, 0, 0, 0, 0, 0, 0, 0, 0 } }; public Sudoku(String incomingPuzzle) { if ( incomingPuzzle.length() != 81 ) { System.out.println("Invalid Sudoku puzzle syntax. Should be 81 numbers."); System.exit(1); } for ( int row = 0; row
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote