Skip to content

Commit 0d8552f

Browse files
feat: Start work on interactive Shell
1 parent c655e84 commit 0d8552f

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

runshell.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
java -classpath ./target/classes/ net.marcellperger.mathexpr.interactive.Shell
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package net.marcellperger.mathexpr.interactive;
2+
3+
import java.util.Arrays;
4+
import java.util.Scanner;
5+
6+
public class Shell {
7+
public static void main(String[] args) {
8+
Scanner sc = new Scanner(System.in);
9+
System.out.println("args = " + Arrays.toString(args));
10+
System.out.print("Enter something: ");
11+
String s = sc.nextLine();
12+
System.out.println("You entered " + s);
13+
}
14+
}

0 commit comments

Comments
 (0)