I need to write currency values, for example, $ 35.40 (thirty-five dollars and forty cents) and after that I want to write a few "****"
so at the end it will be:
thirty five dollars and forty cents*********
at the maximum value of 100 characters
I asked a question about something very likely, but I could not understand the main team.
String format = String.format("%%-%ds", 100);
String valorPorExtenso = String.format(format, new Extenso(tituloTO.getValor()).toString());
What do I need to change in format to put ***at the end of my sentence? Now it puts spaces.
source
share