Package de.linwave.music

Examples of de.linwave.music.Track


    Band stones = new Band("Rolling Stones");
    stones.getAritsts().add(new Artist("Mick Jagger"));

    //
    Album album = new Album("Seargent Peppers lonely hearts club", 1969, theBeatles);
    album.getTracks().add(new Track("Yellow submarine", 120, rock, paul));
    album.getTracks().add(new Track("Abbey road", 96, classic, john));
    album.getTracks().add(new Track("Hello and good bye", 132, rock, ringo));
    album.getTracks().add(new Track("Sag zum Abschied leise Servus", 112, rock, george));
    // theBeatles.getAlbums().add(album);

    Album letItBe = new Album("Let it be", 1970, john);
    letItBe.getTracks().add(new Track("Two of us", 243, rock));
    letItBe.getTracks().add(new Track("Dig it", 145, rock));
    letItBe.getTracks().add(new Track("Let it be", 121, rock));
    letItBe.getTracks().add(new Track("Goodby yellow brick road", 121, rock));

    Album sunrise = new Album("Yellow Submarine", 1970, john);
    sunrise.getTracks().add(new Track("Two of us", 243, rock));
    sunrise.getTracks().add(new Track("Dig it", 145, rock));
    sunrise.getTracks().add(new Track("Let it be", 121, rock));
    sunrise.getTracks().add(new Track("Goodby yellow brick road", 121, rock));
    john.setPlayed(2);

    Album clock = new Album("Clockwork Orange", 1970, george);
    clock.getTracks().add(new Track("Track1", 243, rock));
    clock.getTracks().add(new Track("Track2", 145, rock));
    clock.getTracks().add(new Track("Track3", 121, rock));
    clock.getTracks().add(new Track("Track4", 121, rock));

    try {
      db.store(theBeatles);
    } catch (Exception e) {
      e.printStackTrace();
View Full Code Here

TOP

Related Classes of de.linwave.music.Track

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.