I am trying to compare char to a String but getting an error. Error
error: incompatible types: unexpected return value
code:
Characters are not objects and can / should be compared using the == operator. There is no need to build a string each time. Also the main method can't return any value, it is void.
==
main
void