Please help me solve this problem in the Java Beginner's course: emotion-aware robot
In learning Switches, I am trying to get a result for the problem "Emotion-Aware Robot" It looks like everything is correct, but I can't get it to give me "completed" status. Here is the code: mport java.util.Scanner; class Demo{ public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int emotion = scanner.nextInt(); /* 1 - "You are happy!" 2 - "You are sad!" 3 - "You are angry!" 4 - "You are surprised!" other - "Unknown emotion" */ // add switch statement here switch(emotion){ case 1: System.out.println("You are happy!"); break; case 2: System.out.println("You are Sad!"); break; case 3: System.out.println("You are Angry!"); break; case 4: System.out.println("You are Surprised!"); break; default: System.out.println("Unknown emotion"); } } }