Here you can find the source of mergePath(String... paths)
public static String mergePath(String... paths)
//package com.java2s; //License from project: LGPL public class Main { public static String mergePath(String... paths) { String outPath = ""; for (String path : paths) { if (path != null) { outPath = mergePath(outPath, path); }/* w w w. j a v a 2 s.c o m*/ } return outPath.toString(); } }