So I am looking for a way to temporarily store values so they can be deleted if necessary (I may be going about this the completely wrong way so correct me if I am wrong!)
I created 18 strings: info1, info2, info3, etc…
I want to set each one to a certain value dependent upon the hole the user is at, this is how I pictured it.
hole = 1;
info + hole = current; <--- current is a string with a value already.
hole++;
(so info1 = current value 1)
info + hole = current; <--- current is a new string with a new value similar to the first.
hole++;
(so info2 = current value 2)
If you need more code please let me know. I decided I would skip it and not bother the community with the question so I deleted the code, and then decided no I really want this feature. I will rewrite it real quick if its needed.
This is a wrong approach
is not same as
You need to put things in an array and manipulate then
So for your 18 strings define an array as
and then later do
Here is the nice tutorial on basic arrays in java FYI http://download.oracle.com/javase/tutorial/java/nutsandbolts/arrays.html