Incompatible type Java error
I am writing Java code using the NetBeans IDE. I keep getting a couple of "Incompatible Type" errors. I declare a variable as a String and then assign a value to it from a method that also returns a string. The error says that the expected type was "String", but instead found "...", where "..." is the name of the method I'm calling.
For example, this is the line that gives me the error:
incompatible types found: encode_monoalphabetic_engine required: java.lang.String encoded = encode_monoalphabetic_engine (string);
0
Janus_Of_January
source
to share