Skip to content

Commit

Permalink
Merge pull request #293 from yentheng0110/master
Browse files Browse the repository at this point in the history
Fix minor typo in Main.java
  • Loading branch information
kaboomzxc authored Nov 7, 2024
2 parents 5defa7b + b8129ad commit d061cfb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions data/bookbob_appointment.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ Name: Patrick|NRIC: S9089078U|Date: 08-11-2024|Time: 09:00
Name: John Doe|NRIC: S1234567A|Date: 18-11-2024|Time: 18:00
Name: Yusof|NRIC: S9089079U|Date: 19-11-2024|Time: 09:00
Name: Helen Smith|NRIC: S7654321A|Date: 19-11-2024|Time: 18:00
Name: Yusof|NRIC: S9089079U|Date: 19-11-2024|Time: 18:30
2 changes: 2 additions & 0 deletions data/bookbob_data.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
Name: Patricia | NRIC: S908909U | Phone Number: | Date_Of_Birth: | Home Address: | Allergy: [] | Sex: | Medical History: [] | Visit: [01-01-2025 16:00, Diagnosis: [Cough], Medications: [Cough syrup, Lozenges], 01-01-2025 16:00, Diagnosis: [Gastric, Runny Nose], Medications: [Cetirizine, Panadol], 07-11-2024 16:00, Diagnosis: [Asthma], Medications: []];
Name: Aaron Chia | NRIC: T0989087I | Phone Number: 90890765 | Date_Of_Birth: | Home Address: Yio Chu Kang, 650987 | Allergy: [] | Sex: Male | Medical History: [] | Visit: [07-07-2025 10:00, Diagnosis: [], Medications: [], 09-08-2025 10:00, Diagnosis: [Asthma], Medications: [Albuterol]];
Name: John Doe | NRIC: S9876543A | Phone Number: 91234567 | Date_Of_Birth: | Home Address: | Allergy: [] | Sex: | Medical History: [] | Visit: [01-11-2024 14:30, Diagnosis: [Fever], Medications: [Paracetamol]];
Name: Jane Smith | NRIC: S8765432B | Phone Number: 92345678 | Date_Of_Birth: | Home Address: | Allergy: [] | Sex: | Medical History: [] | Visit: [01-11-2024 15:30, Diagnosis: [Cough], Medications: [Cough Syrup]];
2 changes: 1 addition & 1 deletion src/main/java/bookbob/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ public static void main(String[] args) throws IOException {
System.out.println("Error in finding appointment, wrong time format");
} catch (ArrayIndexOutOfBoundsException e) {
logger.log(Level.WARNING, "Error processing appointment command", e);
System.out.println("Error in finding appointment, missing nric, date and time.");
System.out.println("Error in finding appointment, missing name, nric, date or time.");
} catch (Exception e) {
logger.log(Level.SEVERE, "Error processing find command", e);
System.out.println("An error occurred while processing the find command: " + e.getMessage());
Expand Down

0 comments on commit d061cfb

Please sign in to comment.