Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

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);
    }
}