Question: Create a java program that performs the following in a class named Lab2L1 and a package named lab2L1: 1. Don't forget your header! 2. include
Create a java program that performs the following in a class named Lab2L1 and a package named lab2L1: 1. Don't forget your header! 2. include the comment "declaration of identifiers" and create ints named intNum1, intNum2, and sum. 3. put a blank line in the code, then include the comment "assign values" and assign intNum1 to 52 and intNum2 to 32 . 4. put a blank line in the code, then include the comment "add numbers and store in sum" and assign sum to the sum of intNum1 and intNum2. 5. put a blank line in the code, then include the comment "print the value of sum" and print out "The sum of [intNum1] and [intNum2] is [sum]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
