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 JustSystemOut {
  8. public static void testing() { // create the STATIC method
  9. System.out.print("Fuck the Java!");
  10. }
  11. }
  12. /* Name of the class has to be "Main" only if the class is public. */
  13. class Main
  14. {
  15. public static void main (String[] args) throws java.lang.Exception
  16. {
  17. JustSystemOut jso = new JustSystemOut(); // create the link
  18. jso.testing(); // use the STATIC method using the link
  19. } // ???
  20. } // PROFIT!!!
Success #stdin #stdout 0.1s 320512KB
stdin
Standard input is empty
stdout
Fuck the Java!