The point of my project is to make a list of variables that are taken from another class, WordCount and print them to an output file. WordCount simply stores a word and a counter for the number of occurences of a word. DynamicWordList is just a list class that stores WordCount variables. But I dont know how to increment the variable name so that i can declare numerous WordCount variables within the same loop.