You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I guess one way would be to collect the stream into a list so that it can be reused, then convert that list to a stream twice, once to find the max and once to find the min
But this question bans the use of Java collections, so the stream can only be used once
Hello friends is there any way to do this without creating a whole new class to encapsulate a max and a min?
The text was updated successfully, but these errors were encountered: