Learn Java Programming - String Class Tutorials contains(...)

Publié le: 25 août 2015
sur la chaîne: Daniel Ross
411
3

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.");
}


Sur cette page du site, vous pouvez voir la vidéo en ligne Learn Java Programming - String Class Tutorials contains(...) durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Daniel Ross 25 août 2015, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 411 fois et il a aimé 3 téléspectateurs. Bon visionnage!