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.");
}
In questa pagina del sito puoi guardare il video online Learn Java Programming - String Class Tutorials contains(...) della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Daniel Ross 25 agosto 2015, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 411 volte e gli è piaciuto 3 spettatori. Buona visione!