String .equals opposite [closed]
I have this line of code:
if(command.equals("e") || command.equals("d")) {
//statements
}
The opposite of
(command.equals("e") || command.equals("d"))
is
(!(command.equals("e") || command.equals("d")))
or in a different form
(!command.equals("e") && !command.equals("d"))
精彩评论