Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Asksuresh Programmer   on Nov 12 In Java Category.

  
Question Answered By: Fabia Ferrrari   on Nov 12

you can use the following code :



char[] chars = // your initialization
 string  s = String.valueOf(chars);
if(s.contains("your substring")){
// do domething
}
else{
// do domething
}

also for more complicated you can use regular expressions.

Share: 

 
 
Didn't find what you were looking for? Find more on Search a string in ByteArray Or get search suggestion and latest updates.


Tagged: