Skip to content

Commit

Permalink
Update author annotations for yentheng0110 in CommandHandler.java
Browse files Browse the repository at this point in the history
  • Loading branch information
yentheng0110 authored Oct 10, 2024
1 parent 18d0ead commit 73bbe76
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/bookbob/functions/CommandHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public void help() {
+-----------+---------------------------------------+---------------------------------+""");
}

//@@author yentheng0110
public void add(String input, Records records) throws IOException {
String name = "";
String nric = "";
Expand Down Expand Up @@ -141,6 +142,7 @@ public void add(String input, Records records) throws IOException {
FileHandler.autosave(records);
}

//@@author yentheng0110
// Utility method to find the start of the next field or the end of the input string
private int findNextFieldStart(String input, int currentFieldEnd) {
int nextFieldStart = input.length(); // Default to end of string
Expand All @@ -154,6 +156,7 @@ private int findNextFieldStart(String input, int currentFieldEnd) {
return nextFieldStart;
}

//@author yentheng0110
public void list(Records records) {
List<Patient> patients = records.getPatients();
if (patients.isEmpty()) {
Expand Down

0 comments on commit 73bbe76

Please sign in to comment.