Question: Use variables to name, store, and retrieve values Write a method according to given specifications Write a method that takes arguments and returns a value
Use variables to name, store, and retrieve values
Write a method according to given specifications
Write a method that takes arguments and returns a value
Use parameter variables in a method body
Write a return statement
Use math operators to construct an expression
Use an if statement to get the computer to make a decision
Problem Description and Given Info
Write a public static method named minMaxDiff that will take three arguments of type int and will return a int. When called, and passed three int values, this method must compute and return the positive difference between the minimum and maximum of the three argument values.
Here are some examples of what the method should return for various sets of argument values:
minMaxDiff should return
minMaxDiff should return
minMaxDiff should return
minMaxDiff should return
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
