コード例 #1
0
 public static void displayTracks(Product product, PrintStream out) {
   Set<Track> tracks = product.getTracks();
   out.println("\n-----------------TRACKS for " + product.getCode() + "--------------");
   out.println("\n\tTrackNo\tFileName\tTitle");
   for (Track t : tracks) {
     out.print("\n\t" + t.getTrackNumber() + "\t" + t.getSampleFilename() + "\t" + t.getTitle());
   }
   out.println("\n---------------------------------------------------");
 }
コード例 #2
0
 public static void playTrack(Track track, PrintStream out) {
   out.println("\n---------------------------------------------------");
   out.println("\n Track URL: " + MusicSystemConfig.SOUND_BASE_URL + track.getSampleFilename());
   out.println("\n ...PLAYING...TRACK..." + track.getTitle() + "...");
   out.println("\n---------------------------------------------------");
 }