Quote Originally Posted by RaoPatek View Post
Try this one
if (String) usrInpt = ="C"

replace = with ==
it works...
Why not .equals() instead of ==. As well said here;
The == operator tests if the two references point/refer to the same object.
It is possible for there to be two Strings (ie two different objects) with the same contents. The equals method would say they had the same value (true), the == operator would say the references point to different objects (false).