Skip to content
Advertisement

The operator && is undefined for the argument type(s) boolean, String

I am trying to check if all the conditions below return a true and then validate, but the compiler fails saying:

The operator && is undefined for the argument type(s) boolean, String

I come from JS background an not Java, so any help would be appreciated.

JavaScript

Advertisement

Answer

Change

JavaScript

to

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement