One way would be to wrap the ArrayList in a class and have an add() method that would look at the filesize of items being added and control the number allowed based on total filesize so far.
Type: Posts; User: Norm
One way would be to wrap the ArrayList in a class and have an add() method that would look at the filesize of items being added and control the number allowed based on total filesize so far.
How does a file's size relate to the capacity of an ArrayList? An ArrayList holds references to objects, not the full contents of an object.
Are you asking how to limit the number of objects that...