-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRunner.java
More file actions
45 lines (32 loc) · 1.18 KB
/
Runner.java
File metadata and controls
45 lines (32 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package ie.atu.sw;
import java.util.*;
/**
* Simplifying Text with Word Embeddings
* is a text simplifier API and application UI in Java that converts
* the words in a text file to the 1,000 most common words in English.
*
* @author Yuri Bertozzi G00439350@atu.ie
* @version 1.0
* @since 1.9
*/
public class Runner {
/**
* The main method, serve as the entry point of the application.
*
* @param args Arguments passed to the application.
* @throws InterruptedException if any thread interruption occurs during execution.
* @since 1.0
*/
public static void main(String[] args) throws InterruptedException {
// Initialize necessary services
FilePathManager filePathManager = new FilePathManager();
// Initialize Scanner for user input
Scanner scanner = new Scanner(System.in);
// Initialize MenuManager to handle menu-driven interactions
MenuManager menuManager = new MenuManager(filePathManager, scanner);
// Start the menu
menuManager.displayMenu();
// Close the scanner to release system resources
scanner.close();
}
}