fork 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.  
  11. static String value = "testify";
  12. static int value1 = 25;
  13. static {
  14. value1 = 50;
  15. System.out.println(value);
  16. System.out.println(value1);
  17. }
  18. public static void main (String[] args) throws java.lang.Exception
  19. {
  20.  
  21. boolean val1 = true;
  22. boolean val2 = false;
  23. val2 = val1;
  24. //System.out.println((val2 = true));
  25. if((val2 = true) && val1 != val2){
  26. System.out.println("value");
  27. }
  28.  
  29. double arr[] = new double[81];
  30. arr[1] = 5.5;
  31. System.out.println(arr[0]);
  32.  
  33. System.out.println(value);
  34. }
  35. }
Success #stdin #stdout 0.04s 4386816KB
stdin
Standard input is empty
stdout
testify
50
0.0
testify