How to use (-infinity ) in java coding"

When I want to code to find maximum in java how to store the number -(infinity).

Hi Mohit,you can use Integer.MAX_VALUE and Integer.MIN_VALUE for such things.It will give you the minimum and maximum values of integers in java.

Thank You @samiksha14