Compare commits

..

No commits in common. "858031bdacc9fef68e8c5bef1f185cb967e0272b" and "a5aec38a962cab449a60e092072c51c47819de2c" have entirely different histories.

View File

@ -60,9 +60,7 @@ public class GestorInstitutoXML {
String nombre = instituto.getAttribute("nombre"); String nombre = instituto.getAttribute("nombre");
String tipo = instituto.getAttribute("tipo"); String tipo = instituto.getAttribute("tipo");
String mensajeInstituto = String.format( System.out.println("Instituto- Nombre: " + nombre + ", Tipo: " + tipo);
"Instituto (Nombre: %s - Tipo: %s)", nombre, tipo);
System.out.println(mensajeInstituto);
} }
} }
} }
@ -81,9 +79,7 @@ public class GestorInstitutoXML {
// Obtener texto nombre_corto // Obtener texto nombre_corto
String nombreCorto = ciclo.getElementsByTagName("nombre_corto").item(0).getTextContent(); String nombreCorto = ciclo.getElementsByTagName("nombre_corto").item(0).getTextContent();
String mensajeCiclo = String.format( System.out.println("Ciclo - Código: " + codigo + ", Nombre Corto: " + nombreCorto);
"Ciclo (Código: %s - Nombre corto: %s)", codigo, nombreCorto);
System.out.println(mensajeCiclo);
} }
} }
} }
@ -105,13 +101,10 @@ public class GestorInstitutoXML {
String referencia = modulo.getAttribute("ref"); String referencia = modulo.getAttribute("ref");
// Obtener Número de horas // Obtener Número de horas
String numeroHoras = modulo.getElementsByTagName("numerohoras").item(0).getTextContent(); String numerohoras = modulo.getElementsByTagName("numerohoras").item(0).getTextContent();
String mensajeModulo = String.format(
"Modelo (Id: %s - Referencia: %s - Título: %s - Número de horas: %s)", id, referencia,
titulo, numeroHoras);
System.out.println(mensajeModulo);
System.out.println("Modelo: - Id: " + id + ", Referencia: " + referencia + ", Título: " + titulo
+ ", Número de horas: " + numerohoras);
} }
} }
} }