fork(1) download
  1. interface IFace {
  2. String f(String arg);
  3. }
  4.  
  5. public class Main implements IFace {
  6. @Override
  7. public String f(Object arg) {
  8. return "--" + arg;
  9. }
  10. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:5: error: Main is not abstract and does not override abstract method f(String) in IFace
public class Main implements IFace {
       ^
Main.java:6: error: method does not override or implement a method from a supertype
    @Override
    ^
2 errors
stdout
Standard output is empty