Question: need help , in java on intellij please Open the file named Assignment.j java and amend it so that it solves the following problem: 1.
Open the file named Assignment.j java and amend it so that it solves the following problem: 1. Declare an int variable called total with an initial value of 0 2. Declare an int variable called val1 which has no initial value 3. Declare an int variable called val2 which has no initial value 4. Assign 26 to the variable val1 5. Assign a value 1 bigger than the value of val1 to the variable val2 (you should no use the literal value 27). 6. Assign the sum of val1 and val2 to the variable total 7. Print out the values of val1, val2 and total so that each is separated by a comma Once you have successhisty run your program your output should be the same as the following: 26,27,53
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
