Generating auxiliary objects
I am trying to test HashMap collection. In order to do this I need to create key-value pairs to fill the collection. For keys i thought to create strings that must be unique and for values i can either use the same strings or get some random number and cast it to Integer object.
I can not, however, think of a method that will quickly generate unique strings by say using a 'for' loop.
Does anyone has an idea or a simple technique?
Thank you in advance.