admin管理员组

文章数量:1531911

2024年5月10日发(作者:)

import ;

public class z {

public static void main(String[] args) {

Worker worker=new Worker();

Ys ys=new Ys();

try {

();

} catch (jkzkException e) {

(worker);

if(tus().equals("健康")){

n("恭喜你健康了");

}else {

--

n("00000000尽力了");

}

}finally{

n("欢迎下次再来");

}

}

}

class Worker{

private String status;

public void satStatus(String status){

=status;

}

--

public String getStatus(){

return status;

}

public void work()throws jkzkException{

Random random=new Random();

int rad=t(3)+1;

if(rad==1){

throw new jkzkException("你有病 ");

}else{

n("身体健康不用治疗");

}

}

--

}

class jkzkException extends Exception{

private String messae;

public jkzkException(String messae){

=messae;

}

public String getMessage(){

return messae;

}

}

class Ys{

public void cure(Worker worker){

--

Random random=new Random();

int rad=t(2)+1;

if(rad==1){

tus("健康");

}else{

tus("死亡");

}

}

}

--

本文标签: 电脑板治疗源代码