/* * Intro to Programming CSE 1310 * University of Texas at Arlington */ package code18jan18; /** * * @author jcmtiernan */ public class Code18Jan18 { /** * @param args the command line arguments */ public static void main(String[] args) { System.out.println("Hello World!"); System.out.println("56"); System.out.println(56); System.out.println("56 + 10"); System.out.println(56 + 10); int testInt1; // declaring an int variable named testInt1 int test_Int_2 = 0; // declaring and initializing test_Int_2 int testInt3; int testIntegerProgramValue4; testInt3 = 32; // assign the value of 32 to testInt3 System.out.println("testInt3 = " + testInt3); testInt1 = testInt3 + test_Int_2 + 99; System.out.println("testInt1 = "+testInt1); testIntegerProgramValue4 = testInt1 / 3 * testInt3 - 4; System.out.println("testIntegerProgramValue4 is "+testIntegerProgramValue4); test_Int_2 = -12; testInt1 = (int) 8.5; double testDouble1 = testInt1 + .5; System.out.println("testDouble1 = "+testDouble1); double testDouble2 = -12; System.out.println("testDouble2 = "+testDouble2); //56 } }