System.out.println("\tName: " + lastName +", " + firstAndMiddleName);
System.out.println("\tBalance Owed: "+ df.format(PV));
System.out.println("\tInterest Rate: " + apr+ "%");
System.out.println("\n\tYears" + "\tMonthly \n\t\tPayment" + "\tInterest" + "\tTotal Amount");
System.out.print("\n\tYears" + "\tMonthly \n\t\tPayment" + "\tInterest" + "\tTotal Amount");
这就是我所拥有的,但我很难弄清楚如何正确格式化它。这就是我希望它看起来的样子:
前任。
Monthly Total
Years Payment Interest Amount
任何帮助,将不胜感激!谢谢!