Š¢ŠµŃŃ Š½Šµ ŠæŃŠ¾ŠæŃŃŠŗŠ°ŠµŃ Ń Š²ŠøŠ“Ń Š²ŠµŃŠ½ŃŠ¹ ŠŗŠ¾Š“
ŠŃŠ¾ Š·Š°Š“Š°ŃŠ° ŠæŃŠ¾ ŃŠ¼Š¾ŃŠøŠø ŃŠ¾Š±Š¾ŃŠ° ŠŠ»Ń ŠøŠ·ŃŃŠµŠ½ŠøŃ switch Šø case ŠŠ¾Ń Ń ŃŠæŠøŃŠ°Š» Ń ŠæŃŠ°Š²ŠøŠ»ŃŠ½Š¾Š³Š¾ Š¾ŃŠ²ŠµŃŠ° ŃŃŠ¾Ń ŠŗŠ¾Š“, Š½Š¾ Š¾Š½ Š½Šµ ŠæŃŠ¾Ń Š¾Š“ŠøŃ import java.util.Scanner; public class Main { 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." */ 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 surprised!"); default: System.out.print("Unknown emotion."); } } }