mirror of
https://github.com/TheAlgorithms/Java.git
synced 2026-03-13 08:40:43 +08:00
style: enable HideUtilityClassConstructor in checkstyle (#5147)
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
package com.thealgorithms.strings.zigZagPattern;
|
||||
|
||||
class zigZagPattern {
|
||||
final class zigZagPattern {
|
||||
private zigZagPattern() {
|
||||
}
|
||||
|
||||
public static String encode(String s, int numRows) {
|
||||
if (numRows < 2 || s.length() < numRows) return s;
|
||||
|
||||
Reference in New Issue
Block a user