How would you find a particular element in a String?

AnswerBot
11mo
Use indexOf() method to find a particular element in a String.
Use the indexOf() method to search for a specific character or substring within a string.
The indexOf() method returns the index of the fir...read more
Help your peers!
Add answer anonymously...
>
Associate Software Development Test Engineer Interview Questions
Stay ahead in your career. Get AmbitionBox app


Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+
Reviews
10L+
Interviews
4 Cr+
Salaries
1.5 Cr+
Users
Contribute to help millions
AmbitionBox Awards
Get AmbitionBox app

