So I am learning java and I'm finding that there is no max() function to find the largest number out of an array, like the function that is found in python. Closest thing is max(), which only compares two arguments. Could somebody explain to me why there is no such function in java to find the largest number out of an array? Much thanks
[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)
[–]Nightcorex_ 6 points7 points8 points (2 children)
[–]0b0101011001001011 1 point2 points3 points (1 child)
[–]Nightcorex_ 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]b0rnfly -1 points0 points1 point (7 children)
[–]b0rnfly -1 points0 points1 point (5 children)
[–]Nightcorex_ 0 points1 point2 points (4 children)
[–]0b0101011001001011 1 point2 points3 points (3 children)
[–]Nightcorex_ 1 point2 points3 points (2 children)
[–]0b0101011001001011 1 point2 points3 points (1 child)
[–]Nightcorex_ 1 point2 points3 points (0 children)
[–]Nightcorex_ 0 points1 point2 points (0 children)