I have a byteArray (byte[] ) I need to search if it contains a string, how can i serach a string in ByteArray?
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 }