fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. interface MyInterface
  4. {
  5. void show();
  6. void set();
  7. void just();
  8. }
  9.  
  10. class MyClass implements MyInterface
  11. {
  12. public void set(){}
  13. public void just(){}
  14. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:10: error: MyClass is not abstract and does not override abstract method show() in MyInterface
class MyClass implements MyInterface
^
1 error
stdout
Standard output is empty