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. final Integer[] a = new Integer[1];
  9. a[0] = 0;
  10. new Thread() { @Override public void run() { a[0] = 1; } }.start();
  11. Thread.sleep(1000);
  12. System.out.println(a[0]);
  13. }
  14. }
Success #stdin #stdout 0.06s 380480KB
stdin
Standard input is empty
stdout
1