Max/Min of three or more Integers if null values are allowed
I am wondering if there a better, short and elegant way to achieve this than what i am trying. Let’s say i have 3 Integers(value1, value2, value3) and i want to find max value out of those Integers and null values are allowed for them. I cannot use below code because it could throw NullPointerException:… Read More Max/Min of three or more Integers if null values are allowed