Best Answer

You can use one of the Math.max() methods, or the ternary operator, that is, one of the following:

Math.max(a, b)

a > b ? a : b

Q: What is java statement to find the maximum between two values?

Write your answer...

Submit

Still have questions?

Continue Learning about Math & Arithmetic

Find the maximum and minimum values that the function can take over all the values in the domain for the input. The range is the maximum minus the minimum.

Find the two numbers with the largest magnitudes (absolute values). The sum of their squares will be the maximum.

c = -7, c = -3, c = 2, and c= 5

Order the observations. Find the values of the observation that is a quarter of the way and three quarters of the way along the list of these ordered values. If necessary, interpolate between the values. The difference between the two values is the inter-quartile range and half that is the semi- IQR, as required.

You find the minimum and the maximum values that you expect to see and set the range so that it contains this range with some leeway.

Related questions

Find the minimum and maximum values from the given data. Then range is the difference between maximum and minimum values.

Find the minimum and maximum of what? An array?

Find the maximum and minimum values that the function can take over all the values in the domain for the input. The range is the maximum minus the minimum.

Any graph should be titled and have maximum and minimum values listed on it. The minimum values are usually on the bottom left and the maximum values are on the top right and bottom right of the graph.

The amplitude of a sine (or cosine) curve is the difference between the maximum and minimum values of the curve, measured over a whole cycle.

Find the two numbers with the largest magnitudes (absolute values). The sum of their squares will be the maximum.

From what I can remember it's: |R(measured)-R(real)|/(R(real))*100%

You would need more information.

Find values for the variable that satisfy the equation, that is if you replace those values for the variable into the original equation, the equation becomes a true statement.

Adolescents will always find conflict between parental and peer values.

c = -7, c = -3, c = 2, and c= 5

To determine the maximum displacement, you need to calculate the peak value of the displacement function. This is done by finding the extreme values (maximum or minimum) of the function, typically by taking the derivative and setting it to zero to find critical points. Once you have these critical points, evaluate the function at those points to find the maximum displacement.