Skip to main content

Searching an character present in a string or Not ?

In this article we are searching an character in a given string. And we are going to use indexOf() method for getting the index of the character if it exhist inside the given string otherwise return -1 that means character is not present.

Comments

Popular posts from this blog

Runnable Interfaces Before and After Java8

explicit and implicit import vs static import in java