Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Java Loops!
You have completed Java Loops!
Letβs explore the do-while loop, which guarantees your code runs at least once before checking the condition.
Resources
If you're unfamiliar with Scanner, don't worry, it's taught in detail in an upcoming course. You can just follow along for now and consider it a sneak peak of what's to come.
Here is the Oracle documentation if you want to look into it further.
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