I am using Eclipse and have a general programming question. I want to make a new variable everytime the user does something like press a button. If it was to make a variable once it would be straightforward ; in the code for pressing the button I would declare -
String title1 = “Title1”;
However, I want a new, different variable to be made everytime the user clicks the button. I tried different things like a for loop to modify the name of the next variable and all but ran out of ideas so came here to ask my first question.
Thank you all and apologies if this is a stupid question.