Files
AgendaModule/Main.java
T

32 lines
1.2 KiB
Java

public class Main {
public static void main(String[] args) {
//new Window();
Window w = new Window();
Agenda agn = w.getAgenda();
Artist a1 = new Artist("Coldplay", "Alternative Rock", "null", "A band");
Artist a2 = new Artist("Nirvana", "Alternative Rock", "null", "A band whose lead singer is dead");
Artist a3 = new Artist("Eminem", "Rap", "null", "A very famous rapper");
Stage s1 = new Stage("Rock Stage", "Stage for Rock and Alternative Rock concerts");
Stage s2 = new Stage("Rap Stage", "Stage for Rap concerts");
Event e1 = new Event("Coldplay Live", 2015, 2, 24, 21, 00, 2015, 2, 24, 23, 00, a1, s1, "A concert from a very famous band", 2);
Event e2 = new Event("Coldplay Live", 2015, 2, 25, 20, 00, 2015, 2, 25, 22, 00, a1, s1, "A concert from a very famous band", 1);
Event e3 = new Event("Nirvana in memory", 2015, 2, 24, 16, 30, 2015, 2, 24, 20, 45, a2, s1, "A concert in memory of a once very famous band", 4);
Event e4 = new Event("Epic Rap Battles of History", 2015, 3, 3, 12, 30, 2015, 3, 12, 18, 45, a3, s2, "Rap battle with Eminem and ERP", 3);
agn.addEvent(e1);
agn.addEvent(e2);
agn.addEvent(e3);
agn.addEvent(e4);
agn.fillArtists();
agn.fillStages();
}
}