Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reference to switch statement before introducing it #150

Open
Locust1 opened this issue Apr 5, 2025 · 0 comments
Open

Reference to switch statement before introducing it #150

Locust1 opened this issue Apr 5, 2025 · 0 comments

Comments

@Locust1
Copy link

Locust1 commented Apr 5, 2025

The Break Statement section starts with a reference to the switch statement which has not yet been introduced if you are following the lessons sequentially:
https://dev.java/learn/language-basics/controlling-flow/#break

"The break statement has two forms: labeled and unlabeled. You saw the unlabeled form in the previous discussion of the switch statement. "

The second statement is untrue as far as I can tell. It's the next lesson that introduces the switch statement.


The Yield section on the same page also mentions the switch statement: https://dev.java/learn/language-basics/controlling-flow/#yield

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

No branches or pull requests

1 participant