Java tutorial
import java.nio.file.Path; import java.nio.file.Paths; public class Main { public static void main(String[] args) { Path rootPath = Paths.get("c:/home/docs"); System.out.println(rootPath); Path partialPath = Paths.get("users.txt"); System.out.println(partialPath); Path resolvedPath = rootPath.resolve(partialPath); System.out.println(resolvedPath); } }