FileDocCategorySizeDatePackage
IntOverflow.javaAPI DocExample444Sat Feb 05 11:54:34 GMT 2000None

IntOverflow

public class IntOverflow extends Object

Fields Summary
Constructors Summary
Methods Summary
protected static voiddo_ints()

		int i = Integer.MAX_VALUE;
		System.out.println("i=" + i++);
		System.out.println("i=" + i++);
		System.out.println("i=" + i++);
	
protected static voiddo_shorts()

		short i = Short.MAX_VALUE;
		System.out.println("i=" + i++);
		System.out.println("i=" + i++);
		System.out.println("i=" + i++);
	
public static voidmain(java.lang.String[] unused)

		do_shorts();
		do_ints();