✅ 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");
Path destino = Path.of("/usuarios/ana/documentos/datos.txt");
System.out.println(origen.relativize(destino));
Escribe únicamente la ruta resultante, sin comillas.
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!