as i'm browsing through some java exercises in Programmr, i found this line:
String result = ((num & mask) == 0) ? "even" : "odd";
It's a line from a program that determines if a number is odd or even. I want to know what does this line exactly means especially the "?" that looks like a rogex meta-character but is not inside the "".