1.

How Can You Find Characters Or Substrings Within A String?

Answer»

To find characters or substrings with in a STRING indexOf() and lastIndexOf() methods can be USED.

You can also use contains() METHOD 

public BOOLEAN contains(CharSequence s) - Returns true if and only if this string contains the specified sequence of char values. Otherwise it returns false.

To find characters or substrings with in a string indexOf() and lastIndexOf() methods can be used.

You can also use contains() method 

public boolean contains(CharSequence s) - Returns true if and only if this string contains the specified sequence of char values. Otherwise it returns false.



Discussion

No Comment Found