Cool Java snippets

Jan 23, 2022

Convert an array to a collection and filter it for a string.

Arrays.stream(myStringArray).filter("myFilterString"::equals).toList();
Great! You've successfully subscribed.
Great! Next, complete checkout for full access.
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.