diff --git a/src/TextEditor.java b/src/TextEditor.java index b263df5..bb87961 100644 --- a/src/TextEditor.java +++ b/src/TextEditor.java @@ -2,7 +2,7 @@ public class TextEditor { public static void main(String[] args) { - TextLogik tl = new TextLogik(); + TextLogik t = new TextLogik(); } } diff --git a/src/TextLogik.java b/src/TextLogik.java index 5084cf3..58b1ef7 100644 --- a/src/TextLogik.java +++ b/src/TextLogik.java @@ -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 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])); } }