I have to print a number from 1 to 25 but in three digits.
like
1 as 001
2 as 002
12 as 012
20 as 020.
Here,I used
System.out.printf("%03d",i);
I want to use print function as
System.out.print( i );
But it do not give output in three digits.
Please help!