home
Fundamentals
Common
java.lang
File IO
Collections
Applets & AWT
Misc
Swing
home
Fundamentals
Common
java.lang
File IO
Collections
Applets & AWT
Misc
Swing
home
Fundamentals
Common
java.lang
File IO
Collections
Applets & AWT
Misc
Swing
Math Class
Find absolute value of float, int, double and long using Math.abs
Find ceiling value of a number using Math.ceil
Find exponential value of a number using Math.exp
Find floor value of a number using Math.floor
Find maximum of two numbers using Math.max
Find minimum of two numbers using Math.min
Find natural logarithm value of a number using Math.log
Find power using Math.pow
Find square root of a number using Math.sqrt
Generate Random Int Within Given Range Example
Generate random numbers using Math.random
Round Java float and double numbers using Math.round
Receive LATEST Java Examples In Your Email
Enter your email address below to join 1000+ fellow learners:
Add Comment
Cancel reply
Comment
Name
*
Email
*
Sponsors
search example
Popular Examples
Java String to String Array Example
Find Largest and Smallest Number in an Array Example
Java String Array Length Example
Convert java int to Integer object Example
List Even Numbers Java Example
Draw Smiley In Applet Example
Draw Oval & Circle in Applet Window Example
Change Button Background Color Example
List Odd Numbers Java Example
Copy Elements of One Java ArrayList to Another Java ArrayList Example
Facebook Fans
Java-Examples.com
Recently Commented Examples
Java Pyramid 5 Example
Declare multiple variables in for loop Example
Java Pyramid 6 Example
Reverse Number using Java
Prime Numbers Java Example
Do While loop Example
If Else-If statement Example
Java Pyramid 1 Example
Find Largest and Smallest Number in an Array Example
Calculate Circle Area using Java Example
Add Comment