I use toString and I print out the output like below. I want to align it like a timetable using toString, but I can't.
what I print
NAME: Poon
IC NO: 000912
TAXABLE INCOME 85000.0
STATUS :S
TAX AMOUNT: 17000.0
what I use public String toString(){ return person+"\nTAXABLE INCOME" + taxableIncome +"\nSTATUS :"+status+ "\nTAX AMOUNT: " + taxAmount ; }
Required output:
name iCNO taxableincome taxableAmount
Poon 00654 6546546 465
the required output is somekind like this format I want to print