for example,
int number = 10;
number > 99 && < 1000 ? "three digit number" : "not a three digit number";
result is : not a three digit number.
but i want to print a statement "two digit number" if the number is > 9 and less than 100, in the same statement without requiring a seperate condition to code.
we can do this with if and elseif statements. but is there a way to do this with ternary operator in java?