File tree 4 files changed +4
-5
lines changed
main/java/com/thealgorithms
test/java/com/thealgorithms/matrix
4 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import com .thealgorithms .matrix .utils .MatrixUtil ;
4
4
import java .math .BigDecimal ;
5
- import java .util .Scanner ;
6
5
7
6
/**
8
7
* @author Anirudh Buvanesh (https://github.com/anirudhb11) For more information
Original file line number Diff line number Diff line change 9
9
* @author: caos321
10
10
* @date: 31 October 2021 (Sunday)
11
11
*/
12
- public class MatrixUtil {
12
+ public final class MatrixUtil {
13
13
14
14
private MatrixUtil () {
15
15
}
@@ -40,7 +40,7 @@ public static void validateInputMatrix(double[][] matrix) {
40
40
throw new IllegalArgumentException ("The input matrix cannot be jagged" );
41
41
}
42
42
}
43
-
43
+
44
44
private static boolean hasValidRows (double [][] matrix ) {
45
45
for (double [] row : matrix ) {
46
46
if (row == null || row .length == 0 ) {
Original file line number Diff line number Diff line change 8
8
import java .util .Set ;
9
9
10
10
public final class WordBoggle {
11
-
11
+
12
12
private WordBoggle () {
13
13
}
14
14
/**
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ void testMirrorMatrixMultipleRowsOneColumnMatrix() {
42
42
void testMirrorMatrixNullInput () {
43
43
double [][] originalMatrix = null ;
44
44
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 ());
46
46
}
47
47
48
48
@ Test
You can’t perform that action at this time.
0 commit comments