Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 0 additions & 29 deletions src/main/java/duke/Duke.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,7 @@ public static void main() {
}
}

/**
* Checks if input is "bye"
*/
private boolean isBye(String input) {

return (input.equals("bye"));
}

/**
* Formats a single line with a new line
Expand All @@ -62,27 +56,4 @@ public static String newLine(String input) {
return output;
}

/**
* Formats a single line with the specified number of indentations
*
* @param input Input string
* @param indents Number of indents to add
* @return String with specified number of indents
*/
public static String indent(String input, int indents) {
String indent = "";
String output = "";

// Adding the appropriate number of indents
for (int i = 0; i < indents; i++) {
indent += "\t";
}

// Forming the final string
output = indent + input;

return output;


}
}