I have a programming assignment to create just a single sudoku puzzle. I already
ID: 3614904 • Letter: I
Question
I have a programming assignment to create just a single sudoku puzzle. I already have the puzzle I would like to use. The problem I am at right now is I have created a toString method to display board, however, it has to be an int array and it is displaying zeros where I don't have initial values, which is what it is supposed to do. My professor wants spaces displayed in the empty postions, she says it can be done with a simple if statement in the toString method, but I have been unable to come up with the proper code. If someone can help me in accomplishing the displaying spaces issue I will rate ASAP.Explanation / Answer
/* I have written the code for the toString() function whichincludes an If statement for displaying spaces instead of zeros */ public String toString() { String s="-------------------------- "; for(int i=0; iRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.