This course will be retired on March 31, 2026. We recommend "Java Basics" for up-to-date content.
Bummer! That course has been retired.
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 Basics (2014)!
You have completed Java Basics (2014)!
In this video, we wrap up the course by introducing a mechanism to continually prompt until a valid response is obtained.
Learn more
- This is a very short introduction to loops. Some of your fellow classmates contacted me and asked for more. If you want more too, I did a live workshop called Feeling Loopy with Java.
Extra credit
- There is a method on string called
contains. It checks to see if one string is contained within the other. This seems like a good way to build a master list of words that are not allowed. Why don't see if what they typed is in a long string of bad words. - After you get that working, attempt to take case into account. If your list of bad words that you maintain is all lower cased, you can check the lower case version of the input in the bad string. How do you make a string lowercase?
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