Java tutorial
//package com.java2s; import java.io.File; public class Main { public static String makePath(String path, String name) { String str1 = File.separator; String p = ""; if (path.endsWith(str1)) { p = path + name; } else { p = path + str1 + name; } return p; } }