8,430 results
Open links in new tab
  1. Java String indexOf() Method

    Definition and Usage The indexOf () method returns the position of the first occurrence of specified character (s) in a string. Tip: Use …

  2. Java String indexOf () Method - GeeksforGeeks

    Nov 19, 2024 · In Java, the String indexOf () method returns the position of the first occurrence of the specified character or string in …

  3. String (Java Platform SE 8 )

    The Java language provides special support for the string concatenation operator ( + ), and for conversion of other objects to strings. …

  4. List indexOf() Method in Java with Examples - GeeksforGeeks

    Nov 29, 2024 · Syntax of Method public int indexOf (Object o) Parameters: This function has a single parameter, i.e, the element to …

  5. JavaScript String indexOf () Method

    Description The indexOf () method returns the position of the first occurrence of a value in a string. The indexOf () method returns -1 …

  6. Java String indexOf() Method

    Description This method returns the index within this string of the first occurrence of the specified character or -1, if the character …

  7. Java String indexOf ()

    The character 'a' occurs multiple times in the "Learn Java" string. The indexOf () method returns the index of the first occurrence of …

  8. Java.String.indexOf () | Baeldung

    Apr 11, 2025 · A quick example and explanation of the indexOf API of the standard String class in Java.

  9. Using indexOf to Find All Occurrences of a Word in a String

    Jan 8, 2024 · Learn how to solve the "needle in a haystack" problem by using the indexOf method to find all occurrences of a word in …

  10. Java.lang.String.indexOf() Method

    The java.lang.String.indexOf (String str) method returns the index within this string of the first occurrence of the specified substring. …