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.");
}
En esta página del sitio puede ver el video en línea Learn Java Programming - String Class Tutorials contains(...) de Duración hora minuto segunda en buena calidad , que subió el usuario Daniel Ross 25 agosto 2015, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 411 veces y le gustó 3 a los espectadores. Disfruta viendo!