I am trying to use a for() method to create a new variable each time with the variable. Like the following.
for(i = 1; i < 5; i++){
// NEW VARIABLE //
}
the problem I am having is I am having is I am wanting to use i in the name of the variable. Like the following.
for(i = 1; i < 5; i++){
Draw draw+i = new Draw();
}
How would I go about doing this? (I'm still new to java so no hate please)