java program to calculate compound interest