In this article, we will discuss different variants of index of methods to get first occurrence of character/substring using Strings indexOf() methodhttp://www.benchresources.net/java-string-indexof-method/