I'm trying to make a sort of theoretical MP3 player for an assignment, using the ArrayList class
Basically, I have a "Song" class that defines attributes of songs, including Title, Artist, Duration, and most importantly, Filesize. I have to use an ArrayList to store the songs, but this music player has a size limit
My question is, how do I get the ArrayList to specify a capacity limit, and then check the 'filesize' variable when determining how full it is? I'm really only familiar with the trimToSize method, which isn't what I need. If the limit is 15, I don't want 15 song objects, I want it to fill up based on the object's 'filesize' attribute
I hope that made any sort of sense