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 MyClass1
  8. {
  9. private int area(int side)
  10. {
  11. return(side * side);
  12. }
  13. public static void main(String args[ ])
  14. {
  15. MyClass1 MC = new MyClass1( );
  16. int area = MC.area(50);
  17. System.out.println(area);
  18. }
  19. }
  20.  
Success #stdin #stdout 0.07s 52556KB
stdin
Standard input is empty
stdout
2500