fork(2) 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();
  11. }
  12.  
  13. final Double OPPAI;
  14. final Long MY_SEED = Long.valueOf(12345L);
  15. final int secret;
  16. public final String hoge;
  17.  
  18. {
  19. OPPAI = new Double(0.314159);
  20. }
  21.  
  22. Ideone() { super(); hoge = "HOGE"; secret = 10; }
  23.  
  24. @Override
  25. public void setSeed(long seed)
  26. {
  27. System.out.println(OPPAI);
  28. System.out.println(MY_SEED);
  29. System.out.println(secret);
  30. System.out.println(hoge.equals("HOGE"));
  31. }
  32. }
Runtime error #stdin #stdout #stderr 0.06s 32632KB
stdin
Standard input is empty
stdout
null
null
0
stderr
Exception in thread "main" java.lang.NullPointerException
	at Ideone.setSeed(Main.java:30)
	at java.base/java.util.Random.<init>(Random.java:141)
	at java.base/java.util.Random.<init>(Random.java:105)
	at Ideone.<init>(Main.java:22)
	at Ideone.main(Main.java:10)