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!
You have completed Java Basics!
Preview
In this video, we will block a specific word from being used in our application.
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
humans can be
when hiding behind a keyboard.
0:00
Let's do our part to prevent that behavior
by blocking some offensive words.
0:02
We'll keep it simple for now,
but I'll also use this as a chance
0:06
to introduce you
to some useful tools in your Java toolbox.
0:09
First, let's block
the word dork from being used as a noun.
0:13
We'll use the same
if and then exit pattern we used earlier
0:17
for the age restriction.
0:20
So we've seen how methods can be called on
0:23
objects console, system, and integer.
0:25
Here's
something you might find interesting.
0:29
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