Skip to content

Commit

Permalink
fix small bug in files read
Browse files Browse the repository at this point in the history
  • Loading branch information
IBrahem-Elyamany committed Dec 26, 2023
1 parent a007438 commit 94322dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
13 changes: 3 additions & 10 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/main/java/com/asu/librarysystem/Library.java
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ public static void readLibrary () {
String line = scanner.nextLine();
String[] parts = line.split(",,,");
Order order = new Order(Integer.valueOf(parts[1]), Integer.valueOf(parts[2]), Integer.valueOf(parts[3]));
customer.setIdCounter(Integer.valueOf(parts[0]));
order.setIdCounter(Integer.valueOf(parts[0]));
customer.addOrder(order);
}
scanner.close();
Expand Down

0 comments on commit 94322dc

Please sign in to comment.