fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6. class Prvt10
  7. {
  8. double w;
  9. protected double d;
  10. double h;
  11. Scanner in=new Scanner(System.in);
  12. void dataEntry()
  13. {
  14. System.out.println("Enter three data");
  15. w=in.nextDouble();
  16. d=in.nextDouble();
  17. h=in.nextDouble();
  18. }
  19. protected static void volumne(Prvt10 p1)
  20. {
  21. System.out.println(p1.w*p1.h*p1.d);
  22. }
  23. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
spoj: The program compiled successfully, but main class was not found.
      Main class should contain method: public static void main (String[] args).
stdout
Standard output is empty