dimanche 18 juin 2017

If statement with OR condition in java

I am writing the code asif(!"Admin".equals(role) || !"IAP_PMO".equals(role)) return new ModelAndView("error") It is not checking the both conditions but if I write only one like if(!"Admin".equals(role)) then its working.What is the error?

Aucun commentaire:

Enregistrer un commentaire