fork(3) 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. int n;
  13. n=3;
  14. mystery (n);
  15. }
  16.  
  17.  
  18. public static void mystery(int n)
  19. {
  20. int k;
  21. for (k=0;k<n;k++)
  22. {
  23.  
  24. mystery (k);
  25. System.out.print(k);
  26. }
  27. }
  28.  
  29. }
Success #stdin #stdout 0.03s 711168KB
stdin
Standard input is empty
stdout
0010012