0
我試圖讓每個變量打印出兩位小數,但我不知道我在做什麼錯。任何幫助?格式錯誤:線程「main」中的異常java.util.UnknownFormatConversionException:Conversion ='。'
System.out.printf("%.2",custNum + "\t" + beginBal + " \t " + financeCharge + "\t\t" +
purchases + " \t " + payments + "\t\t" + endBal);