public static int positionOf ( char value , char [ ] array ) { for ( int i = 0 ; i < array . length ; i ++ ) { if ( value == array [ i ] ) { return i ; } } throw new OkapiException ( "Unable to find character '" + value + "' in character array." ) ; }
Returns the position of the specified value in the specified array .