public class integralConversion { public static void main(String[] pars) { byte b1=0, b2=0, b3=0; short s1=0, s2=0, s3=0; int x1=0, x2=0, x3=0; long y1=0, y2=0, y3=0; // Basic assignments such as the above work, // as long as they are within the types range x1 = b1; x1 = s1; s1 = b1; y1 = x1; x1 = y1; b1 = s1; x3 = x1 + x2; y1 = y2 + y3; b3 = b1 + b2; b3 = (byte)(b1 + b2); x1 = b1 + b2; s3 = s1 + s2; s3 = (short)(s1 + s2); s3 = x1 + s1 + b1; s3 = (short)(x1 + s1 + b1); y1 = x1 + s1 + b1; x1 = b1 + b2; x1 = s1 + s2; x1 = b1 + s2; y3 = y1 + y2; x1 = y1 + y2; x1 = y3; x1 = 10; } }