Skip to content

Commit

Permalink
modify comments
Browse files Browse the repository at this point in the history
  • Loading branch information
NAOMI\lemonhyuuga committed Oct 2, 2020
1 parent 806dcb0 commit 9ae5ea6
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions src/main/java/duke/Duke.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class Duke {
private Ui ui;

/**
* Constructor
* Constructor of duke
* @param filepath setting the filepath
*/
public Duke(String filepath) {
Expand All @@ -20,7 +20,7 @@ public Duke(String filepath) {
}

/**
* Run the main function
* Runs the main function
*/
public void run(){
Storage.readFromFile(tasks);
Expand All @@ -30,7 +30,7 @@ public void run(){
}

/**
* Print out hello message and initialize duke
* Prints out hello message and initialize duke
* @param args input arguments
*/
public static void main(String[] args) {
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/duke/oop/Storage.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public Storage(String filepath) {
}

/**
* write tasks data to the txt file according to the file path
* writes tasks data to the txt file according to the file path
* @param tasks get tasks description
*/
public static void writeToFile(TaskList tasks) {
Expand All @@ -48,7 +48,7 @@ public static void writeToFile(TaskList tasks) {
}

/**
* read tasks data from the txt file according to the file path
* reads tasks data from the txt file according to the file path
* @param tasks get tasks description
*/
public static void readFromFile(TaskList tasks) {
Expand Down
12 changes: 6 additions & 6 deletions src/main/java/duke/oop/TaskList.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public TaskList(){
}

/**
* print out the task list when adding tasks
* prints out the task list when adding tasks
* @param task get task description
*/
public static void printTask(Task task) {
Expand All @@ -34,7 +34,7 @@ public static void printTask(Task task) {
}

/**
* print out the task list when setting tasks as done
* prints out the task list when setting tasks as done
* @param line get task description
*/
public static void printDone(String line) {
Expand Down Expand Up @@ -62,7 +62,7 @@ public static void printDone(String line) {
}

/**
* print out the task list when deleting tasks
* prints out the task list when deleting tasks
* @param line get task description
*/
public static void printDelete(String line) {
Expand Down Expand Up @@ -99,7 +99,7 @@ public static void printDelete(String line) {
}

/**
* print out the task list when deleting tasks
* prints out the task list when deleting tasks
*/
public static void printList() {
System.out.println(lineCutOff);
Expand Down Expand Up @@ -172,7 +172,7 @@ public static Task taskType(String task) {
}

/**
* set tasks according to the tasks descriptions
* sets tasks according to the tasks descriptions
* @param line get task description
*/
public static void setTasks(String line) {
Expand All @@ -189,7 +189,7 @@ public static void setTasks(String line) {
}

/**
* print out the task list when asking to find tasks
* prints out the task list when asking to find tasks
* @param line get task description
*/
public static void printFind(String line){
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/duke/oop/Ui.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ public class Ui {
static String lineCutOff = "_______________________";

/**
* print out welcome message
* prints out welcome message
*/
public static void printWelcomeMessage() {
System.out.println(lineCutOff + "\nHello! I'm Duke\nWhat can I do for you?" + "\n" + lineCutOff);

}

/**
* run different instructs according to the tasks description
* runs different instructs according to the tasks description
* store data to the txt file
* @param tasks get tasks description
*/
Expand Down

0 comments on commit 9ae5ea6

Please sign in to comment.