Math.max
only takes two arguments. If you want the maximum of three, use Math.max(MY_INT1, Math.max(MY_INT2, MY_DOUBLE2))
.
More Related Contents:
- How to generate Random point(x,y) in Java [closed]
- Decrement on While loops
- Math.random() explanation
- How to test if a double is an integer
- Convert latitude/longitude point to a pixels (x,y) on mercator projection
- How to round up the result of integer division?
- How to find GCD, LCM on a set of numbers
- What happens when you increment an integer beyond its max value?
- Java Round up Any Number
- Rounding BigDecimal to *always* have two decimal places
- Java: Finding the highest value in an array
- midpoint between two latitude and longitude
- BigInteger.pow(BigInteger)?
- Why does this subtraction not equal zero?
- Displaying fancy equations with Java [closed]
- Why does dividing a float by an integer return 0.0?
- How do I get the max and min values from a set of numbers entered?
- Fast transcendent / trigonometric functions for Java
- Java check if two rectangles overlap at any point
- Java rounding up to an int using Math.ceil
- Recursive Fibonacci memoization
- Is there an efficient algorithm for integer partitioning with restricted number of parts?
- Logarithm for BigInteger
- pow (x,y) in Java
- Finding Signed Angle Between Vectors
- In Java how do you convert a decimal number to base 36?
- Java, divide incoming work uniformly via hashing in multithreaded evnironments
- How do I create an int array with randomly shuffled numbers in a given range [duplicate]
- Combinatoric ‘N choose R’ in java math?
- How to Solve Equations with java?