I have this question that has completely stumped me. I have to create a variable that equals Integer.MAX_VALUE... (in Java)
// The answer must contain balanced parentesis
public class Exercise{
public static void main(String [] arg){
[???]
assert (Integer.MAX_VALUE==i);
}
}
The challenge is that the source code cannot contain the words "Integer", "Float", "Double" or any digits (0 - 9).
int i = Integer.MAX_VALUE;
? Or just look at the source:@Native public static final int MAX_VALUE = 0x7fffffff;
– Coneint i = Integer.MAX_VALUE
. – FeltnerThe issue is that the answer cannot contain: "Integer", "Float", "Double", and digits (0 - 9)
– Dexint
(instead ofInteger
) then. – Lindeberg