Skip to content

Commit bdd4d62

Browse files
author
Samuel Facchinello
committed
remove main method
1 parent 6f9c5df commit bdd4d62

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

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

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.thealgorithms.others;
22

3-
import java.util.Scanner;
43
import java.util.Set;
54
import java.util.TreeSet;
65

@@ -21,21 +20,6 @@ public final class StringMatchFiniteAutomata {
2120
private StringMatchFiniteAutomata() {
2221
}
2322

24-
public static void main(String[] args) {
25-
// Scanner instance for user input
26-
try (Scanner scanner = new Scanner(System.in);) {
27-
28-
System.out.println("Enter text:");
29-
String text = scanner.nextLine();
30-
31-
System.out.println("Enter pattern:");
32-
String pattern = scanner.nextLine();
33-
34-
Set<Integer> indexFound = searchPattern(text, pattern);
35-
indexFound.forEach(System.out::println);
36-
}
37-
}
38-
3923
/**
4024
* Searches for the pattern in the given text using finite automata.
4125
*

0 commit comments

Comments
 (0)