SyntaxFix
Write A Post
Hire A Developer
Questions
The BigDecimal is immutable so you need to do this:
BigDecimal
BigDecimal result = test.add(new BigDecimal(30)); System.out.println(result);