Posts by user3558532 • 1 point
1 post
-
-2
votes2
answers325
viewsA: Match more than one condition in a junior
It is possible yes: If you necessarily want to use the ternary operator (as asked): boolean existe = pessoa.getIdade() == 23? true : pessoa.getIdade() == 22? true : false ; But in this example it…