I need to right align an input string of digits with a mask using plus symbols.
For example:
String input = "893";
String mask = "&&&&&&";
should return
String output = "+++893";
I'm very confused on how to implement this with NumberFormat and or DecimalFormat as I haven't used them before. Any help would be appreciated.