title: How to convert an integer to bigdecimal in Java
body: <p>I want to create a method that calculates multiplication of an integer and a bigdecimal. I search on Google and forums, but I didn't find anything.</p>
  <pre><code>import java.math.BigDecimal;
  private Integer quantite;
  private BigDecimal prixUnit;
  
  public Integer getQuantite() {
          return quantite;
  }
  
  public void setQuantite(Integer quantite) {
      this.quantite = quantite;
  }
  
  
  public BigDecimal getPrixUnit() {
      return prixUnit;
  }
  
  public void setPrixUnit(BigDecimal prixUnit) {
      this.prixUnit = prixUnit;
  }
  
  public BigDecimal methCal(BigDecimal quantite, BigDecimal prixUnit) {
  
      this.prixUnit=prixUnit;
      BigDecimal j = new BigDecimal(quantite);
      this.j = quantite;
  
      return quantite*prixUnit;
  }
  </code></pre>
  <p>How can I fix this?</p>