Hi everyone,
I am preparing for a Java exam at the moment and I came across the following syntax and don't understand how to read it or what exactly it does:
i = (j>1)?2:1;
the whole code block where this is in is as follows:
The print out from this is
1
2