This Java example shows how to find minimum of two numbers using min() method of Java Math class.

How to find minimum of two numbers using Math...

# Java Basic Examples

This Java example shows how to find maximum of two numbers using max() method of Java Math class.

How to find maximum of two numbers using Math...

This Java example shows how to round float or double number to integer using round() method of Java Math class.

How to round float or double to...

This Java example shows how to round down a number using floor method of Java Math class.

How to round down a number using floor method of Math...

This Java example shows how to round up a number using ceil method of Java Math class.

How to round up a number using Math class?

Use ceil() method...

This Java example shows how to find absolute value of an int, float, double or long number using abs() method of Java Math class.

How to find...

This Java example shows how to convert String object to Java primitive data type.

How to convert String to primitive value in Java?

Java wrapper...

This Java example shows how to convert any primitive data type to String object.

How to convert primitive to String in Java?

There are several ways...

Here is the Employee class which is used in many of the examples. Employee class has four properties namely id, name, department and age and has...