The Solution to Break or return from Java 8 stream forEach? is. If you need this, you shouldn't use forEach , but one of the other methods available on streams ...
確定! 回上一頁