I need to output something that looks like this:
This is what i've tried without the asterisks
System.out.printf("%-15s %20s %n",name, "Gross: " + grossPay );
System.out.printf("%20s %n Taxes(25): " + taxes);
System.out.printf("%20s %n Net: ",netPay);
The grossPay, taxes, netPay are all defined else ware but they and their labels have to be right aligned and I don't know how to go about doing that.