I was just wondering how can get the NOR operator in Java like this
if (!(foo == "bar" || foo1=="bar1")){
...
}
Edit : I was looking for a more efficient way to write that
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is no NOR operator in Java. You have to do it as you’ve done
or,
!A && !Bof course.