Tag: Collectors.teeing()

  • How and why to use Collectors.teeing() method in Java?

    Java has been striving hard to reduce the verbosity of its code in the latest features. Once such feature introduced is the teeing() method introduced in Java 12. A tee means this : Input from two different sources can be combined and fed into another source. Let’s say you have a list of employees. You…