Variables declared outside the constructor are not instance variable, they are static to the class instead. That means that new instances of your library will have duplicate data.
For example, out students worked on two files. I wanted to send moss requests for each type of file separately, so I made two instances of your library. However, any files I added to one instance was duplicated in the other instance.
Variables declared outside the constructor are not instance variable, they are static to the class instead. That means that new instances of your library will have duplicate data.
For example, out students worked on two files. I wanted to send moss requests for each type of file separately, so I made two instances of your library. However, any files I added to one instance was duplicated in the other instance.
This should fix that issue.