class P04_long_soln { public static void main(String[] args) { //int type can hold 2123123123. However, 2123123123+2123123123 is too big for int. System.out.println(2123123123); //Output is OK: 2123123123 long x; x = 2123123123L + 2123123123; //Note: need to apply "L" System.out.println(x); //Output is OK: 4246246246 } }