It is because here, you are putting 0
or 1
inside the received variable but what we want is to use booleans (true
or false
) as String.equals(…) returns also a boolean value.
It is because here, you are putting 0
or 1
inside the received variable but what we want is to use booleans (true
or false
) as String.equals(…) returns also a boolean value.