結果 : java code for compound interest