I am making an app that has a grid of images with text and each one opens a different activity. It works fine but just for design purposes I want to replace my if-else
You need to use break statement after eace case operations. In a switch-case statement if you dont use a break statement then all the cases after that specific one will be executed also