How can I store an integer in two digit format in Java? Like can I set
int a=01;
and print it as 01? Also, not only printing,
01
This is not possible, because an integer is an integer. But you can format the Integer, if you want (DecimalFormat).