package com.gongcheng;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;
public class Test {
public static void main(String[] args) throws IOException {
Scanner sr=new Scanner(System.in);
//BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
System.out.print("欢迎来到天下第一武道会,请输入您的战力值\n战力值为:");
//int zl =Integer.parseInt(br.readLine());
int zl=sr.nextInt();
System.out.print("很好,接下来请填写你的名字\n名字为:");
//String nc = br.readLine();
String nc=sr.next();
int dym = (int) (Math.random() * 3000) + 2000;
System.out.println("很好,现在去擂台PK吧;,祝你战胜所有人成为第一名\n公布上一届天下第一武道会冠军:\n撒旦:" + dym
+ "战力\n那么现在请输入“挑战”来进行挑战直至比天下第一还要厉害为止\n注:每次胜利都将增加自己的战力");
int j;
for (int i = 1; i < 100; i++) {
String cz=sr.next();
//String cz = br.readLine();
if(cz.equals("挑战"))
{
if (zl > dym) {
System.out.println(nc + "在第" + i + "场天下第一武道会中击败了武神撒旦成为了第一名");
break;
}
int tzz = (int) (Math.random() * 1000) + 1;
System.out.println("这一回合的挑战者战力:" + tzz);
if (zl > tzz) {
System.out.println("天下第一武道会第" + i + "场比赛获胜者是 " + nc + ":" + zl + "战力");
zl+=400;
} else {
System.out.println("挑战失败,你已经没有挑战资格了");
continue;
}
}else{
System.out.println("输错指令");
}
}
System.out.println("天下第一武道会圆满结束");
}
}
将你的改了下,估计就是这意思