I want to create a string in java with a prefix Size like this
String x = "PIPPO "; //21 character
How can I obtain a string with a prefix size and the other character is space?
I have build this code but I have an error
String ragioneSociale =String.format("%21c%n", myString);