string substring java

Substring Contains String

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…