SyntaxFix
Write A Post
Hire A Developer
Questions
I had an error with an array getting the max and the min so my solution was:
int max = Arrays.stream(arrayWithInts).max().getAsInt(); int min = Arrays.stream(arrayWithInts).min().getAsInt();