Advertisement
Guest User

Untitled

a guest
Feb 17th, 2020
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. public static BigDecimal currencyConverter(Map<String, List<BigDecimal>> data, Map<String, BigDecimal> currencyToEurRate) {
  2. BigDecimal bigPpResult = BigDecimal.valueOf(0);
  3. for (String currency : data.keySet()) {
  4. for (BigDecimal value : data.get(currency)) {
  5. bigPpResult.add(value.multiply(currencyToEurRate.get(currency)));
  6. }
  7. }
  8. return bigPpResult;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement