// Arup Guha
// 4/15/2019
// Framework for 2013 AP Comp Sci A Question #1

import java.util.*;

public class MusicDownloads {
	
	private List<DownloadInfo> downloadList;
	
	public MusicDownloads() {
		downloadList = new ArrayList<DownloadInfo>();
	}
	
	/*** Fill in Solution to Part A here. ***/
	public DownloadInfo getDownloadInfo(String title) {
		
	}
	
	/*** Fill in Solution to Part B here. ***/
	public void updateDownloads(List<String> titles) {
		
	}	
		
	public String toString() {
		String res = "";
		for (DownloadInfo item: downloadList)
			res = res + item + "\n";
		return res;
	}
		
	public static void main(String[] args) {
		
		MusicDownloads mine = new MusicDownloads();
		
		// Create the list they have.
		ArrayList<String> sometitles = new ArrayList<String>();
		sometitles.add("Hey Jude");
		sometitles.add("Soul Sister");
		sometitles.add("Aqualung");
		sometitles.add("Hey Jude");
		sometitles.add("Hey Jude");
		sometitles.add("Soul Sister");
		sometitles.add("Hey Jude");
		for (int i=0; i<9; i++) sometitles.add("Aqualung");
		sometitles.add("Soul Sister");
		sometitles.add("Hey Jude");
		
		// Add it to mine and print.
		mine.updateDownloads(sometitles);
		System.out.println(mine);
		
		// Make a new list.
		ArrayList<String> other = new ArrayList<String>();
		other.add("Hey Jude");
		other.add("Aqualung");
		other.add("Evenflow");
		other.add("With or Without You");
		other.add("Evenflow");
		
		// Print without updating.
		System.out.println("This list should be the same:");
		System.out.println(mine);
		mine.updateDownloads(other);
		
		// Now print after updating.
		System.out.println("After updating, we get a new list:");
		System.out.println(mine);
	}
}