I'm pretty new to Java so be gentle, please.
I'm trying to set up a columnar structure to output to the console with tabs in between each column. However, I want some of the tabs to be right aligned, not left. As you can see below, I'm using a String.format() method and System.out.print(). Any suggestions?
output += String.format("%d\t\t%.2f\t\t%.2f\t\t%.2f\n", i, interest, principal, balance); } System.out.print(output);