Skip to content

feat: add description and example of switch case in new version of Java#129

Open
filipecsoares wants to merge 1 commit intotangorishi:mainfrom
filipecsoares:main
Open

feat: add description and example of switch case in new version of Java#129
filipecsoares wants to merge 1 commit intotangorishi:mainfrom
filipecsoares:main

Conversation

@filipecsoares
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant