Use a collection as mentioned. You can always create a string to identify each item just for the output of course (like var1, var2, ... or whatever is meaningful).
You've also mentioned you're new to the language, so why do you want so much to do something that people are telling you is a bad idea?
Of course, collections have quite useful operations that you can perform on them: counting the number of items, checking whether an item exists, adding/removing items, etc. You're likely to need some of those things, so do you really want to have to reinvent the wheel?
You've also mentioned you're new to the language, so why do you want so much to do something that people are telling you is a bad idea?
Of course, collections have quite useful operations that you can perform on them: counting the number of items, checking whether an item exists, adding/removing items, etc. You're likely to need some of those things, so do you really want to have to reinvent the wheel?