Запустите этот код:
System.out.println("Minimum value of Integer is: " + Integer.MIN_VALUE); System.out.println("Maximum value of Integer is: " + Integer.MAX_VALUE);
Итак, вы можете понять, почему он терпит неудачу.