A compound interest calculator in Java