Question: Provided is code that prompts the user for three integers, stores each in a variable, calls a middle method, and prints the result. The code
Provided is code that prompts the user for three integers, stores each in a variable, calls a middle method, and prints the result. The code doesn't run though it is missing an implementation of the middle method.Solve this problem in these steps:Don't change the main method at all.Write the stub for the middle method by defining the method to accept int inputs and return the int value Run the program, ensuring that is printed at the end. If your code compiles, then you're halfway home.Implement the middle method to return the middle of the values ie the value that is neither the min nor the max Don't use an if statement in your solution. You'll have to think a bit about how to do this with the Java you have already learned. Ask for a hint from the instructor if you are totally stuck.
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
