I was wondering how would you use the printf in Java to align a string Output to the right?
Assuming I have 2 numbers, represented as a String. eg:
123,321,321,321
321,324,213+
How would I align them like that?
Its
System.out.printf( "%s something ", name) ;
I can’t seem to find the % index online
This is called formatting. You can learn very interesting things here.