Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java Java Basics Perfecting the Prototype Censoring Words - Looping Until the Value Passes

What did the Boolean do? I didn't notice anything different. Also question about String noun;

What exactly does Boolean do? Also, when String noun; was put outside of the curly brackets, I'm just curious to know why it isn't necessary to assign the "Enter a noun: " and etc. I thought the commands inside the curly brackets aren't used or something?

1 Answer

Daniel Hartin
Daniel Hartin
18,106 Points

Hi Han

A boolean value is a true/false (yes/no) type variable. I'm not quite sure what the rest of your question refers to but I would suggest re watching these videos to make sure you get the basics before moving forward too quickly as this course does get into the terminology pretty quickly and can be a bit daunting in places fi you're unprepared (not trying to put you off! :) )

Daniel

I rewatched the video, must've dozed off during it. Thanks!