Android String Search indexOf(String str, String searchStr)

Here you can find the source of indexOf(String str, String searchStr)

Description

index Of

Declaration

public static int indexOf(String str, String searchStr) 

Method Source Code

//package com.java2s;

public class Main {

    public static int indexOf(String str, String searchStr) {
        if (str == null || searchStr == null) {
            return -1;
        }// ww  w.  j  a va 2s.  c o m
        return str.indexOf(searchStr);
    }
}

Related

  1. safeIndexOf(String s, String search)
  2. skipSpaces(String s, int start)
  3. nestedIndexOf(final String s, final int startPos, final String open, final String close)
  4. findFirstNotOf(String str, String chars)
  5. findFirstOf(String str, String chars)