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 Practice Java Objects - Word Guessing Game!
You have completed Practice Java Objects - Word Guessing Game!
Preview
Let's take care of a bug we found surrounding uppercase and lowercase guesses.
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
The uppercase value of T is different
than the lowercase value of T.
0:00
So we need to ensure a specific case
in the letters of our data.
0:01
So when dealing with input,
what our end user is
0:05
providing us through our prompts,
like those letters,
0:07
there are a few things that we can do
and should always do.
0:10
Firstly, we should check
the correctness of the input.
0:14
This is called validation.
0:17
Input that has been checked
is said to be validated.
0:18
Another option is to modify
or transform the value
0:22
so that it becomes a valid value.
0:25
This process is called normalization,
and the data is said to be normalized.
0:27
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