阅读背景:

for loop not working:“not a statement”

来源:互联网 
if(fightAnswer == true) {
        System.out.println("Let's do this.\n");

        for(dude.speed >= mob1.speed; mob1.defense > 0;
            mob1.defense = mob1.defense - dude.strength) {

            Scanner inFight = new Scanner(System.in);
            mob1.showAttributes();
            System.out.println("Continue fighting? (y/n)");
            fightChoice = inFight.hasNext();
            System.out.print("\n");
        }
}
if(fightAnswer == true) {
        System.out.pr



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: