min() Method in java

Java Programming Language Number Class in java (Article) Number Class in java (Program)

1115

Program:

 public class WrapperminMethod {

      public static void main(String args[]) {

	        System.out.println(Math.min(122.123, 142.4256));
	        System.out.println(Math.min(223.12, 213.0));
	     }
}
/*

Returns the smaller of the two arguments.

*/

  

Output:

122.123
213.0
Press any key to continue . . .

This Particular section is dedicated to Programs only. If you want learn more about Java Programming Language. Then you can visit below links to get more depth on this subject.