public static void battle() {
Scanner b = new Scanner(System.in); //collect data
System.out.println("What is your Attack? ");
int attack = b.next();
System.out.println("What is your Defence? ");
int defence = b.next();
System.out.println("What is your Base? ");
int base = b.next();
System.out.println("What is your STAB? ");
int stab = b.next();
System.out.println("What is your HP? ");
int hp = b.next();
System.out.println("What is your Level?");
int level = b.next();
//print data colected
System.out.println("=============================================================");
System.out.println("You are fighting mew!\n Your stats:");
System.out.println("\nLevel: " + level + "\nAttack: " + attack + "\nDefence: " + defence + "\nBase: " + base + "\nStab:" + stab + "\nHP: " + hp);
System.out.println("=============================================================");
}
I've been learning java solo for about 2 weeks. I'm trying to do this one programming worksheet where the computer asks the user for Pokemon stats input, then prints the stat list back to them. I'm making some stupid syntax error and it should be obvious but I'm spacing on it.