Merge remote-tracking branch 'origin/main'

This commit is contained in:
Leonardo Brandenberger 2021-11-05 15:08:37 +01:00
commit 5020d4552a
2 changed files with 21 additions and 3 deletions

View File

@ -2,7 +2,7 @@ public class TextEditor {
public static void main(String[] args) { public static void main(String[] args) {
TextLogik tl = new TextLogik(); TextLogik t = new TextLogik();
} }
} }

View File

@ -1,3 +1,5 @@
import java.util.ArrayList;
public class TextLogik { public class TextLogik {
private final Text text; private final Text text;
@ -11,14 +13,30 @@ public class TextLogik {
switch (command[0]) { switch (command[0]) {
case "ADD": case "ADD":
break; break;
case "REMOVE": case "DEL":
break;
case "Dummy":
text.dummy();
break;
case "EXIT":
break;
case "FORMAT RAW":
break;
case "FORMAT FIX":
break;
case "INDEX":
ArrayList<String> Index = text.index();
break;
case "PRINT":
break;
case "REPLACE":
break; break;
default: default:
System.out.println("Command not found. Try again"); System.out.println("Command not found. Try again");
break; break;
} }
} while ("exit".equals(command[0])); } while ("EXIT".equals(command[0]));
} }
} }