[Solved] incompatible types required char found java.lang.string


You’re initializing the variable myChar as type char, but trying to fit a String inside. Java uses double quotes (“”) for Strings and single quotes (”) for chars. To fix this is simple:

char myChar="\u00A9";

The single quotes make ALL the difference!

solved incompatible types required char found java.lang.string