Skip to content

Commit 17cc063

Browse files
committed
Fix PMD violation: remove redundant main method
1 parent 56d17c1 commit 17cc063

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

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

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,4 @@ public static List<Integer> search(final String text, final String pattern) {
8181
}
8282
return occurrences;
8383
}
84-
85-
/**
86-
* Main method demonstrating the KMP algorithm with an example.
87-
*
88-
* @param args command line arguments (unused)
89-
*/
90-
public static void main(String[] args) {
91-
final String text = "AAAAABAAABA";
92-
final String pattern = "AAAA";
93-
search(text, pattern);
94-
}
9584
}

0 commit comments

Comments
 (0)