Question: Basic Java programming create a Java program called Assignment 1 that does the following: 1) Create a String that contains your name 2) Create an
Basic Java programming
create a Java program called Assignment 1 that does the following:
1) Create a String that contains your name
2) Create an integer and assign it the value of 3
3) Create an integer and assign it the value of 5
4) Use a print statement to print your name from the String you created
5) Use a print statement to print, My name is YOUR NAME and my numbers added
together are 8. This should NOT be done using a String hardcoded into a print statement, instead you should use the variables you created in the program (like we did in class) to generate the output.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
