Given that these files exist and are accessible:
and given the code fragment:Which code fragment can be inserted at line n1 to enable the code to print only /company/emp?
Given that these files exist and are accessible:
and given the code fragment:Which code fragment can be inserted at line n1 to enable the code to print only /company/emp?
To print only '/company/emp', the code should list the contents of the '/company' directory to identify its subdirectories and files. Using 'Files.list(Paths.get("/company"))' provides this functionality, as it will return a stream of the paths of files and directories under '/company'.
The answer is A
The answer is A, B is incorrect.
The answer is A B is incorrect
B is correct
a, tested