// FROM geeksforgeeks.com //
// two double data-type numbers are passed as argument
public class Gfg {
public static void main(String args[])
{
double a = 12.123;
double b = 12.456;
// prints the minimum of two numbers
System.out.println(Math.min(a, b));
System.out.println(Math.max(a, b)); // prints max of the two numbers
}
}
Code Example |
---|
Java :: how to get string from resource id android |
:: |
Java :: advantages of exception handling in java |
Java :: |
Java :: |
Java :: |
:: how to add spaces before string in java |
Java :: java base64 to file |
:: what is a do while loop in java |
Java :: |
Java :: quarkus maven skip test |
Java :: com.android.okhttp.internal.http.HttpURLConnectionImpl cannot be cast to javax.net.ssl.HttpsURLConnection |
Java :: button getsource |
Java :: |
Java :: import android.support.v7.app.alertdialog androidx |
Java :: iterate list in java |
:: vscode code formatter cannot format |
:: atm machine java project |
Java :: Caused by: java.io.EOFException: SSL peer shut down incorrectly |
Java :: |
Java :: |
Java :: |
Java :: launch java batch |
Java :: java how to know if there is something on arguments |
:: |
:: how to convert errorBody to pojo in retrofit |
Java :: change text size java |
:: java return new instance of generic type |
Java :: java do while loop example |
:: |