class StringUtilities {

    private static String concat(int totalLength, String... strings)
    {
        final char[] arr = new char[totalLength];
        int pos = 0;
        for (int index = 0; index < strings.length; ++index)
        {
            if (strings[index] != null)
            {
                strings[index].getChars(0, strings[index].length(), arr, pos);
                pos += strings[index].length();
            }
        }
        return new String(arr);
    }

    private  StringUtilities();

}