E
E
EryaVanilovich2018-08-20 15:24:53
Java
EryaVanilovich, 2018-08-20 15:24:53

Java string matching?

Tell me how to implement a partial match: by type CTRL + F.
There is a collection from which you need to display all the words => the letter-letters of which matched.
I would be very grateful.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Iloveski, 2018-08-20
@EryaVanilovich

collection.stream.filter(s -> s.contains("your_string"))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question