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.
2 parents eb64ee4 + 478605b commit 5ec4f51Copy full SHA for 5ec4f51
src/main/java/edu/asu/ser502/App.java
@@ -16,9 +16,12 @@
16
public class App {
17
public static void main(String[] args) {
18
App app = new App();
19
- String path = args.length > 0 ? args[0] : "InputFile.txt";
+ String path = args.length > 0 ? args[0] : "InputFile.spk";
20
try {
21
- app.run(path);
+ if(path.endsWith(".spk")) {
22
+ app.run(path);
23
+ } else
24
+ throw new Exception("Invalid file type!");
25
} catch(Exception e) {
26
System.err.println(e.getMessage());
27
}
0 commit comments