I was recently programming and ran into an issue using the ? : operand. Here\'s my code.
Random rand = new Random(); for(int x = 0; x < 3; x++) {
The compiler is right. The ternary operator returns something, so you need to assign it to a variable.