java8 / Java8InAction

MIT License
3.18k stars 2.26k forks source link

Update PuttingIntoPractice.java #45

Open pkulkarni4 opened 10 months ago

pkulkarni4 commented 10 months ago

Added code for Query 8 mentioned in the book. Fetching min value from array uses MAX_VALUE. Also, added Integer.MIN_VALUE instead of 0 as there could be negative values in the array and return value is always 0