When I want to code to find maximum in java how to store the number -(infinity).
How to use (-infinity ) in java coding"
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.