Can java.lang.String.format(String str, String str1)
be used for adding prefix of a particular character.
I could do this for a number like:
int sendID = 202022;
String usiSuffix = String.format("%032d", sendID);
It makes a String
of length 32 and leftpadded with 0s : 00000000000000000000000000202022
How to achieve the same thing when sendID is a String
like:
String sendID = "AABB";
And I want an output like: 0000000000000000000000000000AABB