Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
In a switch statement with many cases, it can be easy to accidentally leave off a break
statement. And in some cases, this may be done intentionally to save a few lines of code. We can use the @SuppressWarnings
annotation to control the compiler warnings about these scenarios when a break
statement is missing and execution "falls through" to the next case.
This video doesn't have any notes.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up