Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Check If String Contains Substringin Java

In Java, we can confirm if one String holds a specific substring. For example, we would like to check if the substring "rhapsody" is in the String "Bohemian rhapsody movie". Check out the examples on how to use Java String's contains method.



This post first appeared on Grails Cookbook, please read the originial post: here

Share the post

Check If String Contains Substringin Java

×

Subscribe to Grails Cookbook

Get updates delivered right to your inbox!

Thank you for your subscription

×