✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Supuesto: Linux; separador /; imports incluidos. Cuando sea relevante, directorio de trabajo: /usuarios/ana.
¿Qué muestra este código?
Path origen = Path.of("/usuarios/ana/documentos");
Path destino = Path.of("/usuarios/ana/ejercicios/datos.txt");
System.out.println(origen.relativize(destino));