You got my point. But the way you are doing is wrong.
So you can very well search the internet on how to append variables to another variable. Or you can also refer a JAVA book for that.
This is the correct way for a beginner like you to get familiarized with any programming language.