int myint = null;A. You can not set int to null. But you can use Integer, like this;
Integer myint = null;Just remember to use myint.equals(something) instead of == Another approach:
int myint = Integer.MAX_VALUE; int myint = Integer.MIN_VALUE;
int myint = null;A. You can not set int to null. But you can use Integer, like this;
Integer myint = null;Just remember to use myint.equals(something) instead of == Another approach:
int myint = Integer.MAX_VALUE; int myint = Integer.MIN_VALUE;