Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
- Reviewing Our Feedback 6:11
- Conditional ints 3 objectives
- Parsing Integers 3:46
- Parsing Integers 1 objective
- Censoring Words - Using String Equality 4:51
- String Equality 2 objectives
- Censoring Words - Using Logical ORs 4:31
- Using Logical ORs and ANDs 5 questions
- Censoring Words - Looping Until the Value Passes 7:16
- Looping until the value passes 3 objectives

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
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 up-
PLUS
Michel Spaniolo
Courses Plus Student 1,850 Points1 Answer
-
Dhruv Reddy
269 Points1 Answer
-
Arthur King
1,104 Points1 Answer
-
Tinashe Nyandoro
564 Points6 Answers
-
atolagbe elijah
Front End Web Development Techdegree Student 464 Points2 Answers
-
Thatcher S.
383 Points1 Answer
-
Mamta Chaudhary
527 Points1 Answer
-
T Kravitz
204 Points3 Answers
-
<noob />
17,063 Points0 Answers
-
Peggy Rider
782 PointsI encountered end of file error. I checked to make sure I close all my curly braces
Posted by Peggy RiderPeggy Rider
782 Points2 Answers
-
Moshe Sabaah
633 Points1 Answer
-
Kevin Murphy
835 Points3 Answers
-
Mohamed Elmasry
1,166 Points1 Answer
-
Michael Werlinger
1,259 Points1 Answer
-
PLUS
Dervin Buckery
Courses Plus Student 531 Points1 Answer
-
PLUS
Oladapo Oyatayo
Courses Plus Student 428 Points1 Answer
View all discussions for this video
Related 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