public class Main {
public static void main(String[] args) {
int i = 0;
int j = 1;
System.out.println(i += (j < i) ? (2) : (3)); //1
}
}
I think the explanation would do well with an addendum about why println accepts something like (i = 2), something about unary/binary operators or someting, I dunno. It's a really strange thing
2023 Feb 17, 10:28:55 AM
Login in to like
Login in to comment