How does one make a boolean return function?
in
Programming Questions
•
7 months ago
I've been trying to make a function return either true or false. But I don't know what I'm doing wrong…
- String a = "hello";
- String b = "how are you?";
- boolean check(){
- if(a == b){
- return true;
- } else {
- return false;
- }
- }
- println(check());
1