Java Streams: Transform Your Data Into Useful Analytics With collectingAndThen() Sometimes, it isn't good enough just to collect data. It's often the case that you need to take that collected data and transform it into something useful.