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. class X {
  8. double value;
  9.  
  10. public void setValue(double v) {
  11. value = v;
  12. }
  13.  
  14. public double getValue() {
  15. return value;
  16. }
  17. }
  18. /* Name of the class has to be "Main" only if the class is public. */
  19. class Ideone
  20. {
  21. public static void bar(double sum) {
  22.  
  23. }
  24.  
  25. public static void foo(Double sum) {
  26. bar(sum);
  27. }
  28.  
  29. public static void main (String[] args) throws java.lang.Exception
  30. {
  31. X x = new X();
  32.  
  33. x.setValue(0.0);
  34.  
  35. foo(x.getValue());
  36. }
  37. }
Success #stdin #stdout 0.07s 380160KB
stdin
Standard input is empty
stdout
Standard output is empty