Sith jay wrote:I have coded for Sudoku puzzle in java.The thing is my code has limitation for giving inputs for 9*9 grid.How do I make my code adaptable for all the grids.Please have patience.I am new to java.
What changes do I need to make so that the code can run on all grid sizes?The grid is square not a rectangle
This was true for earlier Java versions but not 11. It seems that 11 forces you to know how to edit you PATH environment variable, and to make sure the path for 11 comes first.
Daniel Demesmaecker wrote:At my worklaptop the ...\oracle\... also comes First...
I can 't even remember ever putting it there. Is it created when you install java (Not the jdk)
Answers and Questions may span multiple lines.
Daniel Demesmaecker wrote:This can't be your full code. What is new bean()?
I wouldn't checkfor a Q or A what if your question starts with an a?
You could keep a counter of read lines and do counter%2 do know when you need to start a new line
Agree on using switch(), but why use next() for a menu choice where having another value before pressing Enter should be an error?
Campbell Ritchie wrote:Another suggestion:-
Use the next() method and take the numbers as text; switch on "1", "2", "Q", etc.