Tag Archives: originalPath

Given: String originalPath = "data\\projects\\a-project\\..\\..\\another-project"; Path path = Paths.get(originalPath);

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

Given: String originalPath = "data\\projects\\a-project\\..\\..\\another-project"; Path path = Paths.get(originalPath);

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

Given: String originalPath = "data\\projects\\a-project\\..\\..\\another-project"; Path path = Paths.get(originalPath);

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