What does this line do? Mainly, I'm confused about the use of "?" and ":" and what they do (what are they called?).
Integer b1 = b.length > 0 ? b[0] : 0;
Apologies if the question is repeated I haven't been able to find anything related.
What does this line do? Mainly, I'm confused about the use of "?" and ":" and what they do (what are they called?).
Integer b1 = b.length > 0 ? b[0] : 0;
Apologies if the question is repeated I haven't been able to find anything related.