Main.java:20: error: incompatible types: invalid method reference
return c.stream().map(mapFunc).reduce(BigDecimal.ZERO, BigDecimal::add);
^
no suitable method found for add(Object,Object)
method BigDecimal.add(BigDecimal,MathContext) is not applicable
(argument mismatch; Object cannot be converted to BigDecimal)
method BigDecimal.add(long,long) is not applicable
(argument mismatch; Object cannot be converted to long)
Note: Main.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error