Let's suppose the following inputs for Java 8 method:
String a = "12345678";
String b = "123456";
What's the most elegant and safe way to have this as a result?
a -> "0012345678";
b -> "0000123456";
I want to have a fixed size String variables that are completed with zeros to the left.