Skip to content

Commit

Permalink
Merge pull request #158 from Vavinan/fix-bug
Browse files Browse the repository at this point in the history
Fix bug in UI to get multi-word input
  • Loading branch information
Vavinan committed Apr 14, 2024
2 parents a09e1bf + f7ab114 commit 203865b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/budgetbuddy/ui/UserInterface.java
Original file line number Diff line number Diff line change
Expand Up @@ -306,13 +306,13 @@ public static String getEditInformation(String string) {
System.out.println(string);
System.out.println(LINE);
System.out.print(TAB_SPACE + "Enter transaction type: ");
String type = in.next();
String type = in.nextLine();
System.out.print(TAB_SPACE + "Enter description: ");
String description = in.next();
String description = in.nextLine();
System.out.print(TAB_SPACE + "Enter transaction date: ");
String date = in.next();
String date = in.nextLine();
System.out.print(TAB_SPACE + "Enter transaction amount: ");
String amount = in.next();
String amount = in.nextLine();
System.out.println(" ");
for (Category category : Category.values()) {
System.out.println(TAB_SPACE + TAB_SPACE + category.getCategoryName() + ": " + category.getCategoryNum());
Expand Down

0 comments on commit 203865b

Please sign in to comment.