Answers for "The conditional (ternary) operator with three condition"

2

The conditional (ternary) operator with three condition

String year = credits < 30 ? "freshman" : credits <= 59 ? "sophomore" : credits <= 89 ? "junior" : "senior";
Posted by: Guest on March-26-2020

Code answers related to "The conditional (ternary) operator with three condition"

Browse Popular Code Answers by Language