Inicio XML
This commit is contained in:
@@ -6,7 +6,7 @@ public class App {
|
||||
Manager manager = new Manager();
|
||||
do {
|
||||
System.out.println("=======================");
|
||||
System.out.println("Agenda de contactos TXT");
|
||||
System.out.println("Agenda de contactos XML");
|
||||
System.out.println("=======================");
|
||||
System.out.println("1. Nuevo contacto");
|
||||
System.out.println("2. Buscar por nombre");
|
||||
|
@@ -1,5 +1,10 @@
|
||||
package agenda;
|
||||
|
||||
import java.xml.bind.annotation.*;
|
||||
|
||||
@XmlRootElement(name = "persona")
|
||||
@XmlType(propOrder = { "nombre", "telefono" })
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
public class Persona implements Comparable {
|
||||
private String nombre;
|
||||
private String telefono;
|
||||
|
Reference in New Issue
Block a user