learnJava
learnJava copied to clipboard
feat: add description and example of switch case in new version of Java
Updated the example to showcase the modern switch syntax. The use of the arrow operator (->) and comma-separated case labels dramatically cleans up the logic and prevents common errors associated with forgotten break keywords.