Created
January 28, 2023 12:08
-
-
Save kubawieczorek/34de70132576ab1aa0ac1052eec6e5ef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ResultSet accountFrom; | |
ResultSet accountTo; | |
int comparison = bankTransfer.getFrom().compareTo(bankTransfer.getTo()); | |
if (comparison <= 0) { | |
accountFrom = findAccount(bankTransfer.getFrom(), selectAccountStatementFrom); | |
accountTo = findAccount(bankTransfer.getTo(), selectAccountStatementTo); | |
} else { | |
accountTo = findAccount(bankTransfer.getTo(), selectAccountStatementTo); | |
accountFrom = findAccount(bankTransfer.getFrom(), selectAccountStatementFrom); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment