I meant something like this:
for (x=0; x
Order ("order"+x)=new Order (); /// this line is wrong...
}
...so, what's the right syntax for "variable" identifiers? I hope you understand my question.
I know this is possible in Java. I forgot how it is done. I dunno where to find the answer because I don't even know what this is called.
2007-08-15
01:55:08
·
2 answers
·
asked by
Melzy
2
in
Computers & Internet
➔ Programming & Design
My bad! You misinterpreted it. Yah. It does look like I'm after arrays. No, that's not what I meant. How should I explain it? Errr...I want to make an identifier with part of it defined ("orders") and part of it depends on a variable(x). Like the identifier's name would be "orders" + x. I hope you guys get it. T_T. Uhmm..Adobe's Flash's Actionscript is capable of having this kind of identifier. I really believe that Java can do it.
2007-08-15
04:14:17 ·
update #1