Exception in thread "Thread-0" java.lang.Error: Unresolved compilation problem:
The type MyClass must implement the inherited abstract method Runnable.run()
at MyClass.run(MainClass.java:3)
at java.lang.Thread.run(Thread.java:619)
MyClass does not correctly implement the Runnable interface.
The Runnable interface defines a run() method with voidreturn type and no parameters.