How to build a simple compound interest program using java.