style: enable HideUtilityClassConstructor in checkstyle (#5147)

This commit is contained in:
Piotr Idzik
2024-05-08 08:58:29 +02:00
committed by GitHub
parent 030bb91d05
commit d3bb691f59
285 changed files with 895 additions and 339 deletions

View File

@ -2,7 +2,9 @@ package com.thealgorithms.datastructures.hashmap.hashing;
import java.util.Scanner;
public class Main {
public final class Main {
private Main() {
}
public static void main(String[] args) {
int choice, key;

View File

@ -2,7 +2,9 @@ package com.thealgorithms.datastructures.hashmap.hashing;
import java.util.Scanner;
public class MainCuckooHashing {
public final class MainCuckooHashing {
private MainCuckooHashing() {
}
public static void main(String[] args) {
int choice, key;

View File

@ -8,7 +8,9 @@ This class finds the majority element(s) in an array of integers.
A majority element is an element that appears more than or equal to n/2 times, where n is the length
of the array.
*/
public class MajorityElement {
public final class MajorityElement {
private MajorityElement() {
}
/*
This method returns the majority element(s) in the given array of integers.
@param nums: an array of integers