• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Java Collections: Search for data by using methods, such as findFirst(), findAny(), anyMatch()?

 
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In the OCPJP 8 certification topics, they have this under Java Collections:

- Search for data by using methods, such as findFirst(), findAny(), anyMatch(), allMatch(), and noneMatch()

There are no such methods in Collections though. Don't they mean in streams?

And then they also have this under the same header:

- Develop code that uses the merge(), flatMap(), and map() methods on Java Streams

But they have another header called Java Streams. That's just confusing.
 
author & internet detective
Posts: 41905
909
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, they mean on Streams. I think they put collections because you often all list.stream() to get the stream. Still confusing though!
 
reply
    Bookmark Topic Watch Topic
  • New Topic