Given:
String originalPath = “data\\projects\\a-project\\..\\..\\another-project”;
Path path = Paths.get(originalPath);
System.out.print(path.normalize());
What is the result?
data\another-project
data\projects\a-project\another-project
data\\projects\\a-project\\..\\..\\another-project
data\projects\a-project\..\..\another-project
Submit