I have a variable saying private int minutes = 00
.
If I do System.out.println(minutes)
, Java will print 0
instead of 00
, which is the value. It is removing the last zero, but in this particular example, I want it to print 00
. How to do that?
I also tried making minutes a string, and do: Integer.parseInt(minutes)
and then print that. But the result is the same.