I would like to know how to express OR in Java. I always thought it was ||. But this does not work in my Android App.
So e.g here:
if (team1.getText() **"OR"?** team2.getText() == "myteam");
How can I set the OR statement?
if("myteam".equals(team1.getText()) || "myteam".equals(team2.getText()))
You cannot do something like if((foo || bar).equals(anotherString)).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With