File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11[T] | 0 | nothing
22[D] | 0 | nothing | today
33[E] | 1 | nothing | today
4- [T] | 1 | here
5-
6-
74
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public String toString() {
2222 @ Override
2323 public void printTask () {
2424 System .out .print (" " + DESCRIPTOR );
25- System .out .print ("[" + this .getStatusIcon () + "] " + this .description );
25+ System .out .print (this .getStatusIcon () + " " + this .description );
2626 System .out .println (" (by: " + this .by + ")" );
2727 }
2828}
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public String toString() {
2222 @ Override
2323 public void printTask () {
2424 System .out .print (" " + DESCRIPTOR );
25- System .out .print ("[" + this .getStatusIcon () + "] " + this .description );
25+ System .out .print (this .getStatusIcon () + " " + this .description );
2626 System .out .println (" (at: " + this .at + ")" );
2727 }
2828}
Original file line number Diff line number Diff line change @@ -11,15 +11,15 @@ public Task(String description) {
1111 }
1212
1313 public String getStatusIcon () {
14- // Return tick or X symbols
15- return (isDone ? "\u2713 " : "\u2718 " );
14+ // Return Y or N symbols
15+ return (isDone ? "[Y] " : "[N] " );
1616 }
1717
1818 public abstract String getDescriptor ();
1919
2020 public abstract String toString ();
2121
2222 public void printTask () {
23- System .out .println ("[" + this .getStatusIcon () + "] " + this .description );
23+ System .out .println (this .getStatusIcon () + " " + this .description );
2424 }
2525}
You can’t perform that action at this time.
0 commit comments