display command and interface
This commit is contained in:
parent
1e13ef2b33
commit
7bd3bc0909
@ -2,15 +2,47 @@ package de.vimo;
|
||||
|
||||
import java.util.Scanner;
|
||||
|
||||
public class Jcmd
|
||||
public class Jcmd implements InputTextTillCommand
|
||||
{
|
||||
public static void main( String[] args )
|
||||
{
|
||||
Scanner inputUser = new Scanner(System.in);
|
||||
while (inputUser.hasNextLine()) {
|
||||
String line = inputUser.nextLine();
|
||||
System.out.println(line);
|
||||
System.out.println("Typ your terminal command");
|
||||
|
||||
try {
|
||||
while (inputUser.hasNextLine()) {
|
||||
String line = inputUser.nextLine();
|
||||
if (line.equals("q")) {
|
||||
break;
|
||||
}
|
||||
System.out.println(line);
|
||||
}
|
||||
} catch (IllegalStateException e) {
|
||||
System.out.println(e);
|
||||
} finally {
|
||||
inputUser.close();
|
||||
}
|
||||
inputUser.close();
|
||||
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void splitTextToCommandOptionArgument(String text) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setCommand(String command) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setArgument(String argument) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setOption(String option) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user