Here you can find the source of makePathFromStrings(List
public static String makePathFromStrings(List<String> files)
//package com.java2s; // Licensed under the Apache License, Version 2.0 (the "License"); import java.io.File; import java.util.List; public class Main { public static String makePathFromStrings(List<String> files) { StringBuilder result = new StringBuilder(); for (String file : files) { if (result.length() != 0) { result.append(File.pathSeparator); }//from ww w .j a va 2s .c o m result.append(file); } return result.toString(); } }