fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.io.*;
  4. import java.util.Scanner;
  5.  
  6. /* Name of the class has to be "Main" only if the class is public. */
  7. class Vehicle
  8. { int a=1;
  9. public int run(int a)
  10. {
  11. a=a;
  12. return a;
  13. }
  14.  
  15. public static void main (String[] args) throws java.lang.Exception
  16. {
  17. Vehicle ob=new Vehicle();
  18. System.out.println(ob.run(20));
  19. }
  20.  
  21. }
  22.  
Success #stdin #stdout 0.08s 50852KB
stdin
stdout
20