1: public class MaxInt { 2: public static void main(String[] args) { 3: int myint = Integer.MAX_VALUE; 4: System.out.print("x = "); 5: System.out.println(myint); 6: System.out.print("x + 1 = "); 7: System.out.println(myint + 1); 8: if (myint + 1 < myint) { 9: System.out.println("Java fails at maths."); 10: } 11: } 12: } 13: