25.02.2017 Views

java_tutorial

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Java<br />

Example<br />

public class Test{<br />

}<br />

public static void main(String args[]){<br />

System.out.println(Math.max(12.123, 12.456));<br />

System.out.println(Math.max(23.12, 23.0));<br />

}<br />

This will produce the following result:<br />

12.456<br />

23.12<br />

Java – exp() Method<br />

Description<br />

The method returns the base of the natural logarithms, e, to the power of the argument.<br />

Syntax<br />

double exp(double d)<br />

Parameters<br />

Here is the detail of parameters:<br />

<br />

d --Any primitive data type.<br />

Return Value<br />

<br />

This method returns the base of the natural logarithms, e, to the power of the<br />

argument.<br />

100

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!