Here you can find the source of combinePath(String part0, String... parts)
public static String combinePath(String part0, String... parts)
//package com.java2s; //License from project: Open Source License import java.io.File; public class Main { public static String combinePath(String part0, String... parts) { final StringBuilder builder = new StringBuilder(); builder.append(part0);/*from w w w. j av a 2 s . com*/ for (String part : parts) { builder.append(File.separatorChar); builder.append(part); } return builder.toString(); } }