jetbrick-commons/src/main/java/jetbrick/lang/StringUtils.java
public static int[] indexOf(String s, char c[], int start) {
        int arrLen = c.length;
        int index = Integer.MAX_VALUE;
        int last = -1;
        for (int j = 0; j < arrLen; j++) {
            int i = s.indexOf(c[j], start);
            if (i != -1) {
                if (i < index) {
                    index = i;
                    last = j;
                }
            }
        }
        return last == -1 ? null : new int[] { last, index };
    }
public static int[] indexOf(String s, char c[], int start) {
        int arrLen = c.length;
        int index = Integer.MAX_VALUE;
        int last = -1;
        for (int j = 0; j < arrLen; j++) {
            int i = s.indexOf(c[j], start);
            if (i != -1) {
                if (i < index) {
                    index = i;
                    last = j;
                }
            }
        }
        return last == -1 ? null : new int[] { last, index };
    }
public static int [ ] indexOf ( String s , char c [ ] , int start ) { int arrLen = c . length ; int index = Integer . MAX_VALUE ; int last = - 1 ; for ( int j = 0 ; j < arrLen ; j ++ ) { int i = s . indexOf ( c [ j ] , start ) ; if ( i != - 1 ) { if ( i < index ) { index = i ; last = j ; } } } return last == - 1 ? null : new int [ ] { last , index } ; }
Finds the very first index of a char from the specified array. It
returns an int[2] where int[0] represents the char index and int[1]
represents position where char was found. Returns <code>null</code>
if noting found.

@param s      source string
@param c      char array
@param start  starting position
Finds the very first index of a char from the specified array . It returns an int [ 2 ] where int [ 0 ] represents the char index and int [ 1 ] represents position where char was found . Returns <code > null< / code > if noting found .