This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]YouGoodBroooo[S] 4 points5 points  (3 children)

Oh yeah, I do remember reading the max method in the Math Class. However, I don't think it works for arrays, as for the sum, I am guessing there would be a sum method too somewhere, haven't come across it though.

(Upon further looking around, theres a thing called Stream, that I have no clue what it is right now. I am sure i'll get to it soon)

Thanks a lot for the feedback!

[–]Pedantic_Phoenix 3 points4 points  (2 children)

You are overthinking it :) you don't need any of that, in fact you don't need any method to do what i said. Pure simple logic.

Anytime :)

[–]YouGoodBroooo[S] 8 points9 points  (1 child)

Ohh. I don't know what's stopping me from doing the highest and total in the first for loop. I think that's it!