Guest User

Untitled

a guest
Jan 17th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. int i = 000;
  2. i++;
  3. System.out.println(i); //the output is 1 but I want 001
  4.  
  5. System.out.println(String.format("%03d", i));
Add Comment
Please, Sign In to add comment