java tutorial - Java Math.max() Method - tutorial java - java programming - learn java - java basics - java for beginners
Learn Java - Java tutorial - Java numbers max - Java examples - Java programs
Description
The Math.max () method returns the maximum of two arguments. The argument can be int, float, long, double.
Syntax
The method has the following options:
Options
Detailed information about the parameters:
- The method takes any primitive data type as a parameter.
Return value
- In Java, Math.max () returns the maximum number of two arguments.