interface

This commit is contained in:
happymeal2024 2025-05-14 16:13:11 +02:00
parent 10082c6610
commit 1e13ef2b33
3 changed files with 17 additions and 12 deletions

View File

@ -0,0 +1,12 @@
package de.vimo;
public interface InputTextTillCommand {
void splitTextToCommandOptionArgument(String text);
void setCommand(String command);
void setArgument(String argument);
void setOption(String option);
}

Binary file not shown.

View File

@ -6,18 +6,11 @@ public class Jcmd
{
public static void main( String[] args )
{
for (int i = 0; i < args.length; i++) {
System.out.println(args[i]);
System.out.println(args[i]);
System.out.println(args[i]);
Scanner inputUser = new Scanner(System.in);
while (inputUser.hasNextLine()) {
String line = inputUser.nextLine();
System.out.println(line);
}
Scanner inputUser = new Scanner(args[1]);
// while (inputUser.hasNextLine()) {
// String line = inputUser.nextLine();
// System.out.println(line);
// }
// inputUser.close();
inputUser.close();
}
}