Why it is giving Exception at Runtime : Exception in thread "main" java.util.MissingFormatWidthException: -1$b
If I specify the width its compiling fine..
It is asing the width only when I use '-' this character and '0'....................
'-' '\u002d' ... Left justifies the output. Spaces ('\u0020') will be added at the end of the converted value as required to fill the minimum width of the field. If the width is not provided, then a MissingFormatWidthException will be thrown. If this flag is not given then the output will be right-justified.