We put 4 java reqs in Switch controller named req1,req2,req3,req4.
Then if we give the index in switch controller that req will be executed i.e if we give 0 then req1 will be executed ,if we give index 1 then req 2 will be executed etc...
If we type a out of bound index value like 10 then request at index value 0 will be executed.
If we type some letters like one,two,three or somehting absurd like asdsdfs then no request will be executed at all.