File tree Expand file tree Collapse file tree 4 files changed +4
-5
lines changed
main/java/com/thealgorithms
test/java/com/thealgorithms/matrix Expand file tree Collapse file tree 4 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 22
33import com .thealgorithms .matrix .utils .MatrixUtil ;
44import java .math .BigDecimal ;
5- import java .util .Scanner ;
65
76/**
87 * @author Anirudh Buvanesh (https://github.com/anirudhb11) For more information
Original file line number Diff line number Diff line change 99 * @author: caos321
1010 * @date: 31 October 2021 (Sunday)
1111 */
12- public class MatrixUtil {
12+ public final class MatrixUtil {
1313
1414 private MatrixUtil () {
1515 }
@@ -40,7 +40,7 @@ public static void validateInputMatrix(double[][] matrix) {
4040 throw new IllegalArgumentException ("The input matrix cannot be jagged" );
4141 }
4242 }
43-
43+
4444 private static boolean hasValidRows (double [][] matrix ) {
4545 for (double [] row : matrix ) {
4646 if (row == null || row .length == 0 ) {
Original file line number Diff line number Diff line change 88import java .util .Set ;
99
1010public final class WordBoggle {
11-
11+
1212 private WordBoggle () {
1313 }
1414 /**
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ void testMirrorMatrixMultipleRowsOneColumnMatrix() {
4242 void testMirrorMatrixNullInput () {
4343 double [][] originalMatrix = null ;
4444 Exception e = assertThrows (IllegalArgumentException .class , () -> MirrorOfMatrix .mirrorMatrix (originalMatrix ));
45- assertEquals ("The input matrix cannot be null" , e .getMessage ());
45+ assertEquals ("The input matrix cannot be null" , e .getMessage ());
4646 }
4747
4848 @ Test
You can’t perform that action at this time.
0 commit comments