Java tutorial
//package com.java2s; public class Main { public static String splStrToWebUrl(String... strings) { StringBuilder sBuilder = new StringBuilder("http://"); int i = 0; for (String string : strings) { sBuilder.append(string); if (i < strings.length - 1) sBuilder.append("/"); i++; } return sBuilder.toString(); } }