Here you can find the source of combine(String directory, String filename)
public static String combine(String directory, String filename)
//package com.java2s; // it under the terms of the GNU General Public License as published by public class Main { public static String combine(String directory, String filename) { if (!directory.endsWith("/") && !directory.endsWith("\\")) directory = directory + "/"; String path = directory + filename; return path; }/*from www . j a va 2s . c om*/ }