Skip to content

Commit

Permalink
Packaged all into duke
Browse files Browse the repository at this point in the history
  • Loading branch information
qwertybox123 committed Sep 12, 2023
1 parent 92d0237 commit 7f86037
Show file tree
Hide file tree
Showing 19 changed files with 19 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package duke;
public enum Command {
TODO,
DEADLINE,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package duke;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package duke;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
public class Deadline extends Task {
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/Duke.java → src/main/java/duke/Duke.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import java.util.Scanner;
import java.io.File;
package duke;
import java.util.regex.Pattern;
import java.util.regex.Matcher;
import java.time.LocalDate;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package duke;
public class DukeException extends Exception {
public DukeException(String message) {
super(message);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package duke;
public class EmptyDeadlineException extends Exception {
public EmptyDeadlineException() {
super("OOPS!!! The description of a deadline cannot be empty.");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package duke;
public class EmptyEventException extends Exception {
public EmptyEventException() {
super("OOPS!!! The description of an event cannot be empty.");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package duke;
public class EmptyTodoException extends Exception {
public EmptyTodoException() {
super("OOPS!!! The description of a todo cannot be empty.");
Expand Down
1 change: 1 addition & 0 deletions src/main/java/Event.java → src/main/java/duke/Event.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package duke;
public class Event extends Task {
private String startTime;
private String endTime;
Expand Down
1 change: 1 addition & 0 deletions src/main/java/Exit.java → src/main/java/duke/Exit.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package duke;
public class Exit {
public String exitMessage() {
return "Bye. Hope to see you again soon!";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package duke;
public class Parser {
public static Command parseCommand(String userInput) {
String[] inputParts = userInput.split(" ", 2); // Split input into two parts: command and arguments
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package duke;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
Expand Down
1 change: 1 addition & 0 deletions src/main/java/Task.java → src/main/java/duke/Task.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package duke;
public class Task {
protected String name;
protected boolean isMarked;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package duke;
import java.util.ArrayList;

public class TaskList {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package duke;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package duke;
import java.io.FileWriter;
import java.io.BufferedWriter;
import java.io.IOException;
Expand Down
1 change: 1 addition & 0 deletions src/main/java/Todo.java → src/main/java/duke/Todo.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package duke;
public class Todo extends Task {

public Todo(String name, boolean isMarked) {
Expand Down
1 change: 1 addition & 0 deletions src/main/java/Ui.java → src/main/java/duke/Ui.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package duke;
import java.util.Scanner;

public class Ui {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package duke;
public class UnknownInputException extends Exception{
public UnknownInputException() {
super("OOPS!!! I'm sorry, but I don't know what that means :-(");
Expand Down

0 comments on commit 7f86037

Please sign in to comment.