I have a pizza menu program. Therefore, I have 8 cases (in my switch case) in my main menu, out of which 7 cases work properly but my case 8 isn't working. It's coming the way catch exception comes(for a second and gone). My case 8: contains d bill. Now how can I fix this? It's not working with if else either.