display command and interface

This commit is contained in:
happymeal2024 2025-06-13 18:50:30 +02:00
parent 1e13ef2b33
commit 7bd3bc0909

View File

@ -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) {
}
}