0182: public class Integers // Integers.java 0183: { 0184: public static void main(String[] pArgs) 0185: { 0186: Integer tWrapper = 127; 0187: Integer tNewWrapper = tWrapper + tWrapper; 0188: System.out.println(tNewWrapper); 0189: if (tWrapper<tNewWrapper) 0190: { 0191: System.out.println(tWrapper + " is less than " + tNewWrapper); 0192: } 0193: tNewWrapper = 127; 0194: if (tWrapper==tNewWrapper) 0195: System.out.println(tWrapper + " is equal to " + tNewWrapper); 0196: else 0197: System.out.println(tWrapper + " differs from " + tNewWrapper); 0198: tWrapper = 128; 0199: tNewWrapper = 128; 0200: if (tWrapper==tNewWrapper) 0201: System.out.println(tWrapper + " is equal to " + tNewWrapper); 0202: else 0203: System.out.println(tWrapper + " differs from " + tNewWrapper); 0204: } 0205: }
0206: 254 0207: 127 is less than 254 0208: 127 is equal to 127 0209: 128 differs from 128