fork download
  1.  
  2. import java.util.*;
  3. import java.lang.*;
  4. import java.io.*;
  5.  
  6. class Ideone extends Random
  7. {
  8. public static void main (String[] args) throws java.lang.Exception
  9. {
  10. (new Ideone()).setSeed(0);
  11.  
  12. }
  13.  
  14. Double OPPAI;
  15. Long MY_SEED = Long.valueOf(12345L);
  16. final int secret;
  17. public final String hoge;
  18.  
  19. {
  20. OPPAI = new Double(0.314159);
  21. }
  22.  
  23. Ideone() { super(); hoge = "HOGE"; secret = 10; }
  24.  
  25. @Override
  26. public void setSeed(long seed)
  27. {
  28. System.out.println("----");
  29. if (OPPAI == null) OPPAI = 0.81;
  30. System.out.println(OPPAI);
  31. if (MY_SEED == null) MY_SEED = seed;
  32. System.out.println(MY_SEED);
  33. System.out.println(secret);
  34. System.out.println(hoge);
  35. }
  36. }
Success #stdin #stdout 0.1s 33104KB
stdin
Standard input is empty
stdout
----
0.81
3442558649461760528
0
null
----
0.314159
12345
10
HOGE