diff --git a/app/src/main/java/gui/SudokuController.java b/app/src/main/java/gui/SudokuController.java index 83b5f2d..348c997 100644 --- a/app/src/main/java/gui/SudokuController.java +++ b/app/src/main/java/gui/SudokuController.java @@ -88,8 +88,7 @@ public class SudokuController { int row = view.getSelectedRow(); int col = view.getSelectedColumn(); - String inputText = view.getCellValue(row, col); - int value = Integer.parseInt(inputText); + int value = Integer.parseInt(view.getCellValue(row, col)); // Check if the input is legal and update the model and view if (model.isLegal(row, col, value)) { model.set(row, col, value);