package 第十五章.线程;
public class Threadjield {
    public static void main(String[] args) {
      Mythread t1=new Mythread("t1");
      Mythread t2=new Mythread("t2");
       t1.start();
       t2.start();
    }
}
class Mythread extends Thread{    public Mythread(String s) {
        super(s);
    }
    @Override
    public void run() {
        for (int i = 1; i <= 100; i++) {
            System.out.println(getName()+"-"+i);
            if (i%10==0) {
                 yield();
            }
        }
    }
}
为什么我的程序会有这种错误呢run:
Exception in thread "main" java.lang.VerifyError: (class: 第十五章/线程/Mythread, method: <init> signature: (Ljava/lang/String;)V) Constructor must call super() or this()
        at 第十五章.线程.Threadjield.main(Threadjield.java:5)
Java Result: 1
成功生成(总时间:3 秒)