@@ -0,0 +1,1053 @@
+package com.github.booknara.nioexample;%0A%0Aimport java.io.File;%0Aimport java.nio.file.Path;%0Aimport java.nio.file.Paths;%0A%0A/**%0A * Created by Daehee Han(@daniel_booknara) on 2/16/16.%0A */%0Apublic class PathExample %7B%0A    public static void main(String%5B%5D args) %7B%0A        Path currentPath = Paths.get(%22.%22);%0A        System.out.println(%22Current path : %22 + currentPath.toAbsolutePath().toString());%0A%0A        Path filePath = Paths.get(%22.%22, %22colors.xml%22);%0A        System.out.println(%22File path : %22 + filePath.toAbsolutePath().toString());%0A%0A        Path normalizedPath = filePath.normalize();%0A        System.out.println(%22Normalized File path : %22 + normalizedPath.toAbsolutePath().toString());%0A        System.out.println(%22Normalized File name : %22 + normalizedPath.getFileName());%0A        System.out.println(%22Normalized File name(0) : %22 + normalizedPath.getName(0));%0A%0A        File file = normalizedPath.toFile();%0A        if (file.exists())%0A            System.out.println(%22The file exists!%22);%0A        else%0A            System.out.println(%22The file doesn't exist!%22);%0A    %7D%0A%7D%0A

Add PathExample file