Arrange the following such that the program output is 4 1 2.
![]() |
case 1: System.out.print("1 "); |
![]() |
case 2: System.out.print("2 "); |
![]() |
switch(input) { |
![]() |
default: System.out.print(input + " "); |
![]() |
int input = 4; |
![]() |
} |
![]() |
break; |
Topic: switch Statement In Java