/** * Tiny class to test bounds of maximum integer * @author gtowell * created: Sep 2020 */ public class BoundTest { public static void main(String[] args) { int ii = 1; for (int jj=1; jj<32; jj++) { ii *= 2; System.out.println("Pow " + jj + " " + ii); } for (int jj=0; jj<10; jj++) { System.out.println("minus " + jj + " " + (ii-jj)); } //System.out.println("MIN INT: " + Integer.MIN_VALUE); //System.out.println("MAX INT: " + Integer.MAX_VALUE); } }