Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static BigDecimal currencyConverter(Map<String, List<BigDecimal>> data, Map<String, BigDecimal> currencyToEurRate) {
- BigDecimal bigPpResult = BigDecimal.valueOf(0);
- for (String currency : data.keySet()) {
- for (BigDecimal value : data.get(currency)) {
- bigPpResult.add(value.multiply(currencyToEurRate.get(currency)));
- }
- }
- return bigPpResult;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement