Question: if (firstValue == secondValue) { int total = firstValue + secondVaue; System.out.println(The values are equal); System.out.println(The total is + total); Why will the above

 if (firstValue == secondValue) { int total = firstValue + secondVaue;

if (firstValue == secondValue) { int total = firstValue + secondVaue; System.out.println("The values are equal"); System.out.println("The total is " + total); Why will the above println() statement cause an error? Write code to fix the error

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!