Skip to content

Commit 005e1bd

Browse files
committed
ocr-numbers: clean up example soln
1 parent 6208d8f commit 005e1bd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎exercises/ocr-numbers/src/example/java/OpticalCharacterReader.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*/
99
final class OpticalCharacterReader {
1010

11-
private static final int ROWS_PER_LINE = 4;
11+
private static final int ROWS_PER_LINE = 4;
1212

1313
private static final int COLS_PER_SSD = 3;
1414

@@ -56,9 +56,9 @@ private void validateInput(final List<String> input) {
5656
"Number of input rows must be a positive multiple of " + ROWS_PER_LINE);
5757
}
5858

59-
final int inputColumnCount = input.get(0).length();
59+
final int inputColCount = input.get(0).length();
6060

61-
if (inputColumnCount == 0 || inputColumnCount % 3 != 0) {
61+
if (inputColCount == 0 || inputColCount % 3 != 0) {
6262
throw new IllegalArgumentException(
6363
"Number of input columns must be a positive multiple of " + COLS_PER_SSD);
6464
}

0 commit comments

Comments
 (0)