Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Principles Programming And Performance

Authors: Patrick O'Neil

1st Edition

1558603921, 978-1558603929

More Books

Students also viewed these Databases questions