问答详情
源自:2-2 Java线程-隋唐演义框架说明

为什么我的隋唐运行不了

package WTF;


public class Jill {

public class ArmyRunnable implements Runnable{

ArmyRunnable armyTaskOfSuiDynasty=new ArmyRunnable();

ArmyRunnable armyTaskOfarmyOfRevolt=new ArmyRunnable();

//使用Runnable 接口创建线程

Thread armyOfSuiDynasty =new Thread(armyTaskOfSuiDynasty,"隋唐");

Thread armyOfRevolt =new Thread(armyTaskOfarmyOfRevolt,"农民军");

@Override

public void run() {

// TODO Auto-generated method stub

}

public class Stage extends Thread{

}

}

}

错误: 找不到或无法加载主类 gao.lk

提问者:8198816 2020-02-25 11:33

个回答

  • Hi_10_02_2024
    2020-03-03 14:17:49

    public class ArmyRunnable implements Runnable 放在外面 把

    public class Jill {

    删掉