Java tutorial
//package com.java2s; //License from project: Open Source License import java.io.File; public class Main { public static String combine(final String path1, final String path2) { final File file1 = new File(path1); final File file2 = new File(file1, path2); return file2.getPath(); } }