search string inside a word in java -
i want search word inside string : example let string "thisisfile.java"
, let want search "file.java"
or "isfile"
this sql 'like'
query unfortunately not getting string database.
please suggest me solution this. thanks
there's variety of ways of achieving , method choose depend on complexity of queries. simple plain symbol/word match string class provides contains method takes single parameter, string search - , returns true if occurs within search string.
bool containsfile = mystring.contains("file");
Comments
Post a Comment