0
I can place a ternary operator inside another ternary in java?
(num1 == num2)? System.out.println("Type different numbers! " ):larger = (num1 > num2)? num1:num2;
0
I can place a ternary operator inside another ternary in java?
(num1 == num2)? System.out.println("Type different numbers! " ):larger = (num1 > num2)? num1:num2;
Browser other questions tagged java
You are not signed in. Login or sign up in order to post.
yes you can, look at the content of the duplicate answer p more details
– Vitor Ceolin
Power I believe you can, but avoid. At the moment you will understand but then it will get hard to read.
– Piovezan