/** * MaxInt.java * * This class demonstrates the limited storage capability of int data types * * @author Rob Atlas * */ public class MaxInt { public static void main(String[] args) { int maxInt=1000000000; //One billion System.out.println("One billion: " + maxInt); System.out.println("Two billion: " + (maxInt*2)); System.out.println("Three billion? " + (maxInt*3)); long bigNum=1000000000; //One billion System.out.println("Three billion! " + bigNum*3); } }