0
How does Boolean really works? (Java)
all I know about Boolean is used for simple flags that track true/false conditions. but how does this data type really works? can you give me at least an example? thank you in advance.
2 Respostas
+ 2
an example:
int a = 5;
int b = 3;
boolean equal;
if(b == a)
{
equal = true;
}
else
{
equal = false;
}