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

Published: 25 August 2015
on channel: 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.");
}


On this page of the site you can watch the video online Learn Java Programming - String Class Tutorials contains(...) with a duration of hours minute second in good quality, which was uploaded by the user Daniel Ross 25 August 2015, share the link with friends and acquaintances, this video has already been watched 411 times on youtube and it was liked by 3 viewers. Enjoy your viewing!