with 5 objects. My task was to convert the map to stream. I got that part. Now I have to search the map for all the usernames which contain the letter "h" or "fu". I have to use either regex or string.contains() method for that. Does someone have a link with a good explanation and an example of how regex works? Or even the string.contains() method in combination with maps/hashmaps/streams?
Do you want to check whether a string has "h" and/or "lu" in it?
Обсуждают сегодня