Question
this is a sudoku game which has 2D array in java with [9][9]. please write the fill grind part private JButton[][] gridButton = new JButton[9][9];
this is a sudoku game which has 2D array in java with [9][9]. please write the fill grind part
private JButton[][] gridButton = new JButton[9][9]; // buttons that make up the Sudoku grid private JButton[] numberButton = new JButton[11]; // numbers and other command buttons
public void fillGrid() { Scanner scan; URL url; try { url = new URL("http://venus.cs.qc.cuny.edu/~aabreu/cs212/project1/Sudoku1.txt"); scan = new Scanner(url.openStream());
// write the code to fill the grid JOptionPane.showMessageDialog(this, "Write the necessary code to fill the grid.");
} catch (MalformedURLException mue) { mue.printStackTrace(); } catch (IOException ioe) { ioe.printStackTrace(); } }
//Fill the grid with data read from a file
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started