Skip to content

Commit 563da07

Browse files
authored
Update MagicSquare.java
1 parent b37c434 commit 563da07

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

MagicSquare.java

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
/**
2-
* MagicSquare.java
3-
* the class represent a MazicSquare
4-
* @author (liron mizrhai)
5-
* @Date (1/7/2023)
6-
*/
1+
//*******************************************************
2+
// MagicSquare.java
3+
// The class represent a MazicSquare
4+
// Author: liron mizrahi
5+
//*******************************************************
76
public class MagicSquare
87
{
98
/**
@@ -62,7 +61,11 @@ public static int sumSecondaryDiag(int[][] mat)
6261
}
6362
return sum;
6463
}// end of method sumSecondaryDiag
65-
64+
/**
65+
* method return true if given int[][] is magicsquare otherwise return false
66+
* @parm int[][] mat
67+
* @return boolean
68+
*/
6669
public static boolean isMagicSquare(int[][] mat)
6770
{
6871
int sumRow;

0 commit comments

Comments
 (0)