Write clean code by replacing if statement by switch statement
Activity