Replacing viable for loops with Stream.forEach.