This course will be retired on July 31, 2026. We recommend "Practice Java Objects - Word Guessing Game" for up-to-date content.
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 Objects (2016)!
You have completed Java Objects (2016)!
Preview
Let's take care of a bug we found surrounding uppercase and lowercase guesses.
Learn more
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 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:00
So when dealing with input, what our end
user is providing us through our prompts,
0:04
like those letters, there are a few
things that we can and should always do.
0:07
Firstly, we should check
the correctness of the input.
0:12
This is called validation.
0:14
Input that has been checked
is said to be validated.
0:16
Another option is to modify or
transform the value so
0:19
that it becomes a valid value.
0:23
This process is called normalization,
and the data is said to be normalized.
0:25
So in our, hey, you already guessed
that letter exception example,
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