How to put the first element in a java stream?

I just want to get the first element of a java thread, delete it and continue my life. How can I do this without making it overly complex (e.g. with forEach , casting or filter )?

+5
source share

Source: https://habr.com/ru/post/1208264/


All Articles