/** * Using doubles, ints, and floats - showing precision and errors * * Hunter Lloyd * January 28th */ public class Second { public static void main(String [] args) { //arithmitic BE CAREFULS; int a, b, c; double x, y, z; float i, j, k; a = 4; b=3; c = a/b; x = 4; y=3; z = x/y; i=4; j=3; k = i/j; System.out.println("int answer = " + c); System.out.println("dou answer = " + z); System.out.println("flo answer = " + k); int biggestInt = Integer.MAX_VALUE; System.out.println("The biggest int " + biggestInt); biggestInt = biggestInt +2; System.out.println("The biggest int after adding 2: " + biggestInt); } }