class Utilities {

    public static int indexOf(char[] arr, char element)
    {
        for (int index = 0; index < arr.length; ++index)
        {
            if (arr[index] == element)
            {
                return index;
            }
        }
        return -1;
    }

    private  Utilities();

}