package u2Home.task1;

public class Train {
}

@@ -20,27 +20,1606 @@
 1;%0A%0A
-public class Train %7B
+import javax.xml.bind.annotation.*;%0Aimport javax.xml.bind.annotation.XmlRootElement;%0A%0A@XmlRootElement(name = %22train%22)%0A// %D0%BE%D0%BF%D1%80%D0%B5%D0%B4%D0%B5%D0%BB%D1%8F%D0%B5%D0%BC %D0%BF%D0%BE%D1%81%D0%BB%D0%B5%D0%B4%D0%BE%D0%B2%D0%B0%D1%82%D0%B5%D0%BB%D1%8C%D0%BD%D0%BE%D1%81%D1%82%D1%8C %D1%82%D0%B5%D0%B3%D0%BE%D0%B2 %D0%B2 XML%0A%0A@XmlType(propOrder = %7B%22from%22, %22to%22, %22date%22, %22departure%22%7D)%0Apublic class Train %7B%0A    private int id;%0A    private String from;%0A    private String to;%0A    private String date;%0A    private String departure;%0A%0A    public Train()%7B%0A    %7D%0A%0A    public Train(int id, String from, String to, String date, String departure) %7B%0A        this.id = id;%0A        this.from = from;%0A        this.to = to;%0A        this.date = date;%0A        this.departure = departure;%0A    %7D%0A%0A%0A    public int getId() %7B%0A        return id;%0A    %7D%0A    @XmlAttribute%0A    public void setId(int id) %7B%0A        this.id = id;%0A    %7D%0A%0A    public String getFrom() %7B%0A        return from;%0A    %7D%0A%0A    public void setFrom(String from) %7B%0A        this.from = from;%0A    %7D%0A%0A    public String getTo() %7B%0A        return to;%0A    %7D%0A%0A    public void setTo(String to) %7B%0A        this.to = to;%0A    %7D%0A%0A    public String getDate() %7B%0A        return date;%0A    %7D%0A%0A    public void setDate(String date) %7B%0A        this.date = date;%0A    %7D%0A%0A    public String getDeparture() %7B%0A        return departure;%0A    %7D%0A%0A    public void setDeparture(String departure) %7B%0A        this.departure = departure;%0A    %7D%0A%0A//    @Override%0A//    public String toString() %7B%0A//        return %22train%7B%22 +%0A//                %22id=%22 + id +%0A//                %22, from='%22 + from + '%5C'' +%0A//                %22, to=%22 + to +%0A//                %22, date='%22 + date + '%5C'' +%0A//                %22, departure='%22 + departure + '%5C'' +%0A//                '%7D';%0A//    %7D
 %0A%7D%0A

add code