Announcement

Collapse
No announcement yet.

Quick Java Format question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Quick Java Format question

    I need help putting a space after the A in this so its formatted properly.

    Code:
    System.out.println("A" + nformat.format(Loans[0].getloan()) + " loan over " + Loans[0].gettime() + " years, at an interest rate of " + (Loans[0].getinterest()*100) + "%");
    	System.out.println("\twill give you " + Loans[0].getmonths() + " monthly payments of $" + nformat.format(Loans[0].getmonthlypay()));
    Why is it called tourist season, if we can't shoot at them?

  • #2
    Have you tried putting a space after the A (in quotes, like "A ")???

    - Steve
    (you use the same technique in the string " loan over ")

    Comment

    Working...
    X