File tree Expand file tree Collapse file tree 3 files changed +7
-86
lines changed
Expand file tree Collapse file tree 3 files changed +7
-86
lines changed Original file line number Diff line number Diff line change 11package burger ;
22
3- import java .io .IOException ;
43import java .util .Scanner ;
54
65import burger .list .List ;
76
8- import static burger .BurgerFileClass .*;
9-
10- public class Burger {
7+ public class
8+ {
119 static final String CHATBOT_NAME = "Burger" ;
1210 static final String HORIZONTAL_LINE = "---------------------------------" ;
1311
14- public static void main (String [] args ) throws IOException {
12+ public static void main (String [] args ) {
1513 welcomeMessage ();
16- List myList = getSaveFile ();
14+ List myList = new List ();
1715 Scanner input = new Scanner (System .in );
1816 boolean isPolling = true ;
1917 while (isPolling ) {
@@ -34,7 +32,7 @@ public static void main(String[] args) throws IOException {
3432 }
3533 }
3634 }
37- goodbye (myList );
35+ goodbye ();
3836 }
3937
4038 private static void welcomeMessage () {
@@ -57,9 +55,7 @@ private static void printUnknownInputError() {
5755 printLine ();
5856 }
5957
60- public static void goodbye (List currList ) throws IOException {
61- System .out .print ("Saving file" );
62- setSaveFile (PATHNAME , currList );
58+ public static void goodbye () {
6359 printLine ();
6460 System .out .println ("Bye. Hope to see you again soon!" );
6561 printLine ();
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ public List() {
3232 */
3333 public boolean isValidCommand (String [] textArray ) {
3434 boolean isValid = true ;
35- int idx = 0 ;
35+ int idx ;
3636 try {
3737 String command = textArray [COMMANDIDX ];
3838 switch (command ) {
@@ -66,14 +66,6 @@ public boolean isValidCommand(String[] textArray) {
6666 }
6767 }
6868
69- public void addFromSaveFile (char tde , char mark , String task ) {
70- Task currTask = new Task (task , tde );
71- if (mark == 'X' ) {
72- currTask .markDone ();
73- }
74- taskList .add (currTask );
75- }
76-
7769 private static int getIdx (String [] textArray ) {
7870 StringBuilder idx = new StringBuilder ();
7971 for (int i = 1 ; i < textArray .length ; i ++) {
You can’t perform that action at this time.
0 commit comments