I am trying to combine 3-4 java programs into a switch statement. I found solution as method calling but unfortunately it did not worked fine, still getting errors this and