Please enable JavaScript to use CodeHS

CodeHS Glossary

boolean Java

`boolean` is a Java type that can either be true or false booleans are great for storing answers to yes or no questions. They represent true or false statements. For example, we can make boolean values like this: ``` boolean loggedIn = false; boolean gameOver = true; ```