i'm trying to make a simple code and this point in the code generates an error in the script saying String can't be used as boolean even though i'm not using it as boolean
String wc = Mt.input("asks for input") /*i have a class called Mt that basically just makes writing lines and asking for input easier*/
if (wc = "a possible input for wc") {//error occurs here
Mt.s("words");
Mt.input("");
System.exit(0);
}
the error is
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
Type mismatch: cannot convert from String to boolean
at Main.main(Main.java:20)//line of if statement in full code