Is it possible to set shift nor by default but programmatically? I mean if I have a code
System.out.format("%-d%d", shift, value);
it returns java.util.MissingFormatWidthException
. Instead of error I want to set the shift dynamically.
How can I do that?