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