fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
  10. public static void main (String[] args) throws java.lang.Exception
  11. {
  12. for(int i=1;i<20;i++){
  13. String s = String.format("R%02d", i);
  14. System.out.println(s);
  15. }
  16. }
  17. }
Success #stdin #stdout 0.12s 320576KB
stdin
Standard input is empty
stdout
R01
R02
R03
R04
R05
R06
R07
R08
R09
R10
R11
R12
R13
R14
R15
R16
R17
R18
R19