Hi Aravind, the menu1 you are getting is the Wrapper Class Integer. But the value what you are trying to compare '1' is of built in type 'int'. thats why the mismatch. try doing with parsing the Integer as int and compare. You can use Integer.intValue() to get the int out of Integer.