I need help with 15.2 practise - emotion detector
My code cannot pass Test case # 5. I don't know what I'm doing wrong, I did it myself and still had trouble with case # 5. Then I rewrote the code from the answer and it's still the same. import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int emotion = scanner.nextInt(); switch (emotion) { case 1: System.out.print("You are happy!"); break; case 2: System.out.print("You are sad!"); break; case 3: System.out.print("You are angry!"); break; case 4: System.out.print("You are suprised!"); break; default: System.out.print("Unknown emotion."); } } }