I'm practicing my Java skills and I'm trying to left-align everything, however, it's not working as I want it to.
Basically I want something like this:
Player: Jackson
Number of tries: 14
And here is what I'm trying:
String format1 = "%-30s %30s%n";
String temp = String.format(format1, "Player:", "Jackson");
System.out.print(temp);
temp = String.format(format1, "Number of tries:", "14");
System.out.print(temp);
However, the words on the left-hand side don't match up, and the words on the right-hand side don't match up.