In this post we will see How to check String contains a substring in Java with example. Different waysto check String contains a substring