fork download
  1. public class Fuck
  2. {
  3. public String goAgain (String str, int index)
  4. {
  5. if (index >= str.length())
  6. return str;
  7.  
  8. return str + goAgain(str.substring(index), index + 1);
  9. }
  10. public static void main (String [] args)
  11. {
  12.  
  13. System.out.println(goAgain("today", 1));
  14. }
  15. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Sknzj
compilation info
Main.java:1: error: class Fuck is public, should be declared in a file named Fuck.java
public class Fuck
       ^
Main.java:13: error: non-static method goAgain(String,int) cannot be referenced from a static context
        System.out.println(goAgain("today", 1));
                           ^
2 errors
stdout
Standard output is empty