- findFirst operation on stream returns an optional of the first item in the stream.
int stream one to three
IntStream oneToThree = IntStream.of(1, 2, 3);
USAGE
log.info("finding first item in oneToThree stream: " + oneToThree.findFirst());
There's a lot out there to be talked about - Java, Scala, Docker, Kafka, Pulsar, Spring, AKKA, Kubernetes, ...
IntStream oneToThree = IntStream.of(1, 2, 3);
log.info("finding first item in oneToThree stream: " + oneToThree.findFirst());
Comments
Post a comment