We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a7084c commit 329c1d9Copy full SHA for 329c1d9
src/main/java/com/thealgorithms/strings/StringRotation.java
@@ -1,15 +1,16 @@
1
package com.thealgorithms.strings;
2
3
-public class StringRotation {
+public final class StringRotation {
4
5
private StringRotation() {
6
throw new UnsupportedOperationException("Utility class");
7
}
8
9
/**
10
- * Checks if str2 is a rotation of str1
11
- * @param str1 Original string
12
- * @param str2 String to check for rotation
+ * Checks if str2 is a rotation of str1.
+ *
+ * @param str1 the original string
13
+ * @param str2 the string to check for rotation
14
* @return true if str2 is a rotation of str1, false otherwise
15
*/
16
public static boolean isRotation(String str1, String str2) {
0 commit comments