Ok, Ive been working on this,But at the very end where it displays:import java.util.Scanner; public class Levels { public static void main(String[] args) { Scanner keyboard = new Scanner(System.in); System.out.println("Pick a number 1 - 10:"); int WinnerPoints; WinnerPoints = 0; System.out.println("Your current amount of Points is " + WinnerPoints); int numberPicked = keyboard.nextInt(); switch (numberPicked) { case 1: case 2: case 3: case 4: case 5: case 6: case 8: case 9: case 10: System.out.println("Sorry, you lost :("); break; case 7: System.out.println("YAY! You Won!"); WinnerPoints = 0+5; System.out.println("Welcome to level 2!"); break; default: System.out.println("Thats not 1 - 10..."); break; } System.out.println("Your Current Amount of Points is " + WinnerPoints); if (WinnerPoints > 5) System.out.println("Begin Test.."); else if (WinnerPoints == 0) System.out.println("Good Bye"); } }
This does not work, my IDE says there is no error, but the code won't work, what do I do?if (WinnerPoints > 5) System.out.println("Begin Test.."); else if (WinnerPoints == 0) System.out.println("Good Bye");