Discussions Q&R
Why does this happen
7 Votes
3 RéponsesStill Dont Get It
9 Votes
5 Réponses? : are called Ternary Operators.
ex.
var = booleanExp ? ValueIfTrue : ValueIfFalse;
and that ? literally means "Asking a Question" Asking if the Boolean Expression is True.
If the Boolean Expression returned true, the Value for "True" will be assigned to the variable.
If the Boolean Expression returned false, the Value for "False" will be the one that'll be assigned to the variable instead.
I'm not asking a question, I just wanna share this to you guys 😁
18 Votes
6 RéponsesAujourd'hui en vedette
++ Confusion in java
0 Votes
Why won't canvas work?
2 Votes
How to avoid global variables
1 Votes
Doubt
0 Votes
Java microproject
0 Votes