class StringUtilities {

    public static String slashJoin(String... strings)
    {
        final StringBuilder sb = new StringBuilder();
        for (final String str : strings)
        {
            if (!str.isEmpty())
            {
                if (sb.length() > 0 && sb.charAt(sb.length() - 1) != '/' && str.charAt(0) != '/')
                {
                    sb.append('/');
                }
                sb.append(str);
            }
        }
        return sb.toString();
    }

    private  StringUtilities();

}