java-maxint: a1a736ac9067fb1093f5eed88b61a9e9f44ac9f7

     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: 

Generated by git2html.