Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task 1 + Task 2 #14

Open
wants to merge 13 commits into
base: flow
Choose a base branch
from
Prev Previous commit
Next Next commit
Update TransactionService.java
mustafanafia authored Jan 1, 2025
commit 23039be65f83e9cb824eaa69d29098524ff36332
Original file line number Diff line number Diff line change
@@ -50,13 +50,5 @@ public void processTransaction(Transaction transaction) {
System.out.println("Transaction discarded: " + transaction);
}


// Print Waldorf's final balance after all transactions are processed
UserRecord waldorf = userRepository.findByName("waldorf"); // Assuming you have a method to find by name
if (waldorf != null) {
System.out.println("Final balance for Waldorf: " + waldorf.getBalance());
} else {
System.out.println("Waldorf not found in the database.");
}
}
}