Question: 1. Create a new Java class called ESBExercise. 2. In the main method, create three integer variables called a, b, and c, and set their

1. Create a new Java class called "ESBExercise". 2. In the main method, create three integer variables called "a", "b", and "c", and set their values to 5,3 , and 8 , respectively. 3. Create a variable called "result" and assign it the value of the expression " (a * b)+(c/b) ". 4. Create a variable called "isPositive" and assign it the value of the expression "result > 0". 5. Create a statement that prints out the value of "result". 6. Create a block that checks if "isPositive" is true. If it is, print out the message "The result is positive!". If it is not, print out the message "The result is not positive
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
