Skip to content

Commit eea9c88

Browse files
committed
checkstyle
1 parent 0b3d056 commit eea9c88

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/java/com/thealgorithms/others/SnakeAndLadder.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
// the last cell from the first cell of a given snake and ladder board.
99
public class SnakeAndLadder {
1010

11+
// Private constructor to prevent instantiation
12+
private SnakeAndLadder() {
13+
throw new UnsupportedOperationException("Utility class");
14+
}
15+
1116
public static class QueueEntry {
1217
// Cell number
1318
int cell;

0 commit comments

Comments
 (0)