2016-04-12 61 views

回答

1

您的格式String應該是%.2f,一個用於每個術語。類似的,

System.out.printf("%.2f\t%.2f\t%.2f\t%.2f\t%.2f\t%.2f%n", custNum, beginBal, 
     financeCharge, purchases, payments, endBal); 
相關問題