Tag: string contains

String contains() Java

May 3, 2013 · 1 min read
###### Existence of a substring in the main string can be checked with String contains() method.

Substring Contains String

May 3, 2013 · 2 min read
##### In C/C++, string is an array of characters with a terminating **/0**. But in Java, the scenario is completely different. In Java, string exists as a **class String** from **java.lang** package. To make string manipulation easy, Designers introduced many methods in String class with different functionality. Of them two are given substring() and contains() in this tutorial Substring Contains String.