vendredi 25 octobre 2019

Can ternary operator be used in if else ladder in java?

I've seen the ternary operator can be used in if else situations but neither of them included a else if(if-else ladder).So,is there a way to use ternary operator in that situation. I'm new to the java. So doesn't mind if it's silly question.

Aucun commentaire:

Enregistrer un commentaire