Merge remote-tracking branch 'origin/main'

This commit is contained in:
Leonardo Brandenberger
2021-11-05 15:08:37 +01:00
2 changed files with 21 additions and 3 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ public class TextEditor {
public static void main(String[] args) {
TextLogik tl = new TextLogik();
TextLogik t = new TextLogik();
}
}
+20 -2
View File
@@ -1,3 +1,5 @@
import java.util.ArrayList;
public class TextLogik {
private final Text text;
@@ -11,14 +13,30 @@ public class TextLogik {
switch (command[0]) {
case "ADD":
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;
default:
System.out.println("Command not found. Try again");
break;
}
} while ("exit".equals(command[0]));
} while ("EXIT".equals(command[0]));
}
}