@@ -0,0 +1,652 @@
+package br.com.juliocnsouza.ocpjp._3io_nio;%0A%0Aimport java.nio.file.Path;%0Aimport java.nio.file.Paths;%0A%0A/**%0A * NormalizePath.java -%3E Job:%0A * %3Cp%3E%0A * @since 07/03/2015%0A * @version 1.0%0A * @author Julio Cesar Nunes de Souza (julio.souza@mobilitasistemas.com.br)%0A */%0Apublic class NormalizePath %7B%0A%0A    public static void main( String%5B%5D args ) %7B%0A        String diretorio = %22/dir1/dir2%22;%0A        String suba2Niveis = %22../..%22;%0A%0A        String meuDir = %22meudir1/medir2%22;%0A%0A        Path path = Paths.get( diretorio , suba2Niveis , meuDir );%0A        System.out.println( %22Original: %22 + path );%0A        System.out.println( %22Normalizado: %22 + path.normalize() );%0A    %7D%0A%0A%7D%0A

Normalize Path