Implement a class Video
and build an application to keep track of your watched videos. For each video, we must save: the Youtube identifier, the title, the number of views and whether or not you watched it.
toString()
method that prints the attributes of the video as one line (see example output below; each line represents a video). Note: the numbers (1, 2, 3, etc) cannot be printed by this toString() method. Also the last part of the line ([NOT WATCHED] or [WATCHED]) cannot be printed by the toString() method due to the fact that it must be printed in color.watch()
, which simulates that the video has been watched. Make sure that the video is marked as watched in the overview.Finish the program by adding functionality in the Application class. Make sure you use the provided dataset (youtubevideos.csv
). Take a close look to the examples below to see how the functionality can be implemented.