Integer.parseInt(userSelection) returns an integer. you must create an int variable and store it, or simply paste the same code where userSelection is in the if statement