Skip to content

Commit

Permalink
Merge pull request #39 from IBrahem-Elyamany/main
Browse files Browse the repository at this point in the history
fix small bug in files read (IB)
  • Loading branch information
ahmedsiam0 authored Dec 27, 2023
2 parents a007438 + 94322dc commit f9cfc77
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 f9cfc77

Please sign in to comment.