// Java program to demonstrate
// Path.resolve(String other) method
import java.nio.file.*;
public class GFG {
public static void main(String[] args)
{
// create an object of Path
Path path
= Paths.get("drive empSpring");
// create a string object
String passedPath = "drive";
// call resolve() to create resolved Path
Path resolvedPath
= path.resolve(passedPath);
// print result
System.out.println("Resolved Path:"
+ resolvedPath);
}
}
//CONCATENATION DES CHEMIN
// Java program to demonstrate
// Path.resolve(Path other) method
import java.nio.file.*;
public class GFG {
public static void main(String[] args)
{
// create an object of Path
Path path
= Paths.get("drive empSpring");
// create an object of Path
// to pass to resolve method
Path path2
= Paths.get("programsworkspace");
// call resolve()
// to create resolved Path
Path resolvedPath
= path.resolve(path2);
// print result
System.out.println("Resolved Path:"
+ resolvedPath);
}
}