Skip to content

Commit

Permalink
respective changes made in files due to package refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
maiyasaliha committed Feb 3, 2024
1 parent 7ff9a2e commit 9cd3d94
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 24 deletions.
1 change: 1 addition & 0 deletions data/ken.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
T | 0 | shower
10 changes: 6 additions & 4 deletions src/main/java/Ken/Ken.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package Ken;
import Ken.parser.Parser;
import Ken.storage.Storage;
import Ken.ui.Ui;
package ken;
import ken.exception.KenException;
import ken.parser.Parser;
import ken.storage.Storage;
import ken.task.TaskList;
import ken.ui.Ui;

public class Ken {
private static final String FILE_PATH = "./data/ken.txt";
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/Ken/exception/KenException.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package Ken;
package ken.exception;

public class KenException extends Exception {
public KenException(String message) {
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/Ken/parser/Parser.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package Ken.parser;
package ken.parser;

import Ken.KenException;
import Ken.TaskList;
import Ken.storage.Storage;
import ken.exception.KenException;
import ken.task.TaskList;
import ken.storage.Storage;

import java.util.Scanner;

Expand Down
6 changes: 3 additions & 3 deletions src/main/java/Ken/storage/Storage.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package Ken.storage;
import Ken.task.Task;
import Ken.KenException;
package ken.storage;
import ken.task.Task;
import ken.exception.KenException;
import java.io.File;
import java.io.FileWriter;
import java.io.FileReader;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/Ken/task/Deadline.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package Ken.task;
package ken.task;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/Ken/task/Event.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package Ken.task;
package ken.task;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/Ken/task/Task.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package Ken.task;
package ken.task;

public class Task {
protected String description;
Expand Down
8 changes: 3 additions & 5 deletions src/main/java/Ken/task/TaskList.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package Ken;
import Ken.task.Deadline;
import Ken.task.Event;
import Ken.task.Task;
import Ken.task.Todo;
package ken.task;
import ken.exception.KenException;

import java.util.ArrayList;
import java.util.List;
public class TaskList {
Expand Down
4 changes: 1 addition & 3 deletions src/main/java/Ken/task/Todo.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
package Ken.task;

import Ken.task.Task;
package ken.task;

public class Todo extends Task {
public Todo(String description) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/Ken/ui/Ui.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package Ken.ui;
package ken.ui;

public class Ui {
public void welcomeMessage() {
Expand Down

0 comments on commit 9cd3d94

Please sign in to comment.