The contains() method is very useful for searching strings to see if they contain a specific value. The method will return true if the parameter string is found inside of the current string instance, if not, it will return false.
For example,
String a = "hen fox house";
if ( a.contains("fox") ) {
System.out.println("Found a fox in the hen house.");
}
Nesta página do site você pode assistir ao vídeo on-line Learn Java Programming - String Class Tutorials contains(...) duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Daniel Ross 25 Agosto 2015, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 411 vezes e gostou 3 espectadores. Boa visualização!