Skip to content

Commit 348370d

Browse files
fix: HideUtilityClassConstructor
Signed-off-by: JeevaRamanathan <jeevaramanathan.m@infosys.com>
1 parent 62d373e commit 348370d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/main/java/com/thealgorithms/strings/Isogram.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@
2626
* Reference from https://en.wikipedia.org/wiki/Heterogram_(literature)#Isograms
2727
*/
2828
public class Isogram {
29+
30+
/**
31+
* Private constructor to prevent instantiation of utility class.
32+
*/
33+
private Isogram() {
34+
}
35+
2936
/**
3037
* Checks if a string is an isogram using boolean array approach.
3138
*

0 commit comments

Comments
 (0)