Error when adding Big Decimal elements

Asked

Viewed 19 times

-4

I need to add all pre-defined elements to the elements that will be inserted by the user, but gives error when instantiating Bigdecimal

private BigDecimal concentracaoK;
     
private BigDecimal concentracaoNa;
   
public Curva(Long id, Amostra amostra, BigDecimal concentracaoK, BigDecimal concentracaoNa) {

    this.id = 0L;
    this.amostra = amostra;
    this.concentracaoK =  new BigDecimal("0.00");
    this.concentracaoNa =  new BigDecimal("0.00");
    
}

CurvaRepositorio repoc = new CurvaDAO(0.0, 0.2, 0.4, 0.8, 1.2, 1.6);
  • 1

    Puts the error that is appearing when you try to add the elements

  • Please clarify your specific problem or provide Additional Details to Highlight Exactly what you need. As it’s Currently Written, it’s hard to Tell Exactly what you’re asking.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.