mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-12-19 07:00:35 +08:00
style: enable HideUtilityClassConstructor in checkstyle (#5147)
This commit is contained in:
@@ -5,7 +5,9 @@ import java.util.Scanner;
|
||||
/*A magic square of order n is an arrangement of distinct n^2 integers,in a square, such that the n
|
||||
numbers in all rows, all columns, and both diagonals sum to the same constant. A magic square
|
||||
contains the integers from 1 to n^2.*/
|
||||
public class MagicSquare {
|
||||
public final class MagicSquare {
|
||||
private MagicSquare() {
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
Scanner sc = new Scanner(System.in);
|
||||
|
||||
Reference in New Issue
Block a user