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. public static void main (String[] args) throws java.lang.Exception
  11. {
  12. final int n =10;
  13. double d = 2.5;
  14. char c = 'X';
  15. boolean b = true;
  16. System.out.println(n);
  17. System.out. println(d);
  18. System.out.println(c);
  19. System.out.println(b);
  20. d=5.9;
  21. c='Y';
  22. b=false;
  23. System.out.println(d);
  24. System.out.println(c);
  25. System.out.println(b);
  26.  
  27.  
  28. }
  29. }
Success #stdin #stdout 0.11s 55140KB
stdin
Standard input is empty
stdout
10
2.5
X
true
5.9
Y
false