<<< Comparing Strings | Index | if with else-if >>> |
userEntry.equals( "Y" ) // equal to a string literal userEntry.equalsIgnoreCase( "Y" ) // equal to a string literal ( !lastName.equals( "Jones" ) ) // not equal to a string literal code.equalsIgnoreCase( productCode ) // equal to another string variable
<<< Comparing Strings | Index | if with else-if >>> |