Here's an example of a traditional switch construct that is modifying a variable based on an enum value passed to a method:
enum SingleUsePlastic {STRAW, BAG, SPOON, FORK, KNIFE, PLATE, BOTTLE}; class Planet { private static long damage; public void use(SingleUsePlastic plastic) { switch(plastic) { case STRAW : damage += 10; break; case BAG : damage += 11; break; case SPOON : damage += 7; break; case FORK : damage += 7; break; case KNIFE : damage += 7; break; case PLATE : damage += 15; break; case BOTTLE: damage = 20; ...