I'm trying to add a value to a variable of type BigDecimal, however regardless of the calculation it results in 0.
Sample code:
BigDecimal valorTotal = new BigDecimal(0);
public void adicionarVenda(int idProduto, int quantidade) {
BigDecimal newQtd = new BigDecimal(quantidade);
BigDecimal newQtd2 = newQtd.multiply(preco);
valorTotal.add(newQtd2);
System.out.println(valorTotal);
}