The boolean data type

The boolean type only have two possible values, true or false.
In other languages a boolean value can be seen as an integer value, but Java is very strict when it comes to the boolean type.

The below example shows how you can use a boolean type:

Search for more Java info on this site here:
Custom Search

Any thoughts or questions?