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.

need help , in java on intellij please
need help , in java on intellij please Open the file named

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!