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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!