find the first occurrence of a character in string using java

In this post, we will learn to find the first occurrence of a character in string using java As like in above image we are going to take String “BeginnersBug” for our example. This array starts from 0 index to 11. In this example, we are going to find the first occurrence of character ‘e’. which is 1 … Continue reading find the first occurrence of a character in string using java