fork download
  1. import java.util.*;
  2. import java.lang.*;
  3.  
  4. class Main
  5. {
  6. public static void main (String[] args) throws java.lang.Exception
  7. {
  8. System.out.printf("no to %1$s\n", "testujemy!");
  9. System.out.printf("no to %0$8d\n", 666, 777, 888);
  10. System.out.printf("no to %0$08d\n", 666, 777, 888);
  11. System.out.printf("no to %1$08d\n", 666, 777, 888);
  12. System.out.printf("no to %2$08d %0$08d\n", 666, 777, 888);
  13. }
  14. }
Success #stdin #stdout 0.03s 245632KB
stdin
Standard input is empty
stdout
no to testujemy!
no to      666
no to 00000666
no to 00000666
no to 00000777 00000666