O'Reilly logo
  • Ahliddin Ibragimov thinks this is interesting:

count

From

Cover of OCP Oracle® Certified Professional Java® SE 8 Programmer II

Note

Stream.count() is also destructive to the stream