File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes java.math.BigDecimal + java.math.BigDecimal ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "java.math.BigDecimal + java.math.BigDecimal ?" Watch "java.math.BigDecimal + java.math.BigDecimal ?" New topic

java.math.BigDecimal + java.math.BigDecimal ?

Indudhar Rao

Joined: Oct 25, 2004
Posts: 6
How do I do this?

java.math.BigDecimal = java.math.BigDecimal + java.math.BigDecimal;

Steve Morrow
Ranch Hand

Joined: May 22, 2003
Posts: 657

You can read up on the BigDecimal.add() method in the API javadocs. It's an extremely important skill to learn to read the API and become familiar with the tools you will use to program Java. Java has an extensive set of documentation that you can even download for your convenience. These "javadocs" are indexed and categorized so you can quickly look up any class or method. Take the time to consult this resource whenever you have a question - you'll find they typically contain very detailed descriptions and possibly some code examples.

Java� API Specifications
Java� 1.5 JDK Javadocs
Indudhar Rao

Joined: Oct 25, 2004
Posts: 6
Oh yes, I wonder how did I miss the BigDecimal.add(BigDecimal) method in the documentation. Thank you so much Steve.
I agree. Here's the link:
subject: java.math.BigDecimal + java.math.BigDecimal ?
It's not a secret anymore!