Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Search for a substring

 
mike farad
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai,
I m looking for a method that checks if a particular string is a part of a string. For example if I want to check if "Sub" is in a String called "SearchSubString". I know this can be done using indexOf().Is there any other way. Thanks in advance.
-Mike
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic