Removed to avoid plagiarism...
Asked
Active
Viewed 46 times
0
-
Are you trying to create an `array`.? – Murat Karagöz Oct 21 '16 at 14:38
-
I think I already have the array called bars on line two. – elibretto Oct 21 '16 at 14:39
-
@Sotirios Delimanolis I don't know how that link would help him. – Nikolas Charalambidis Oct 21 '16 at 14:40
-
@NikolasCharalambidis They are attempting to name a `Bar` variable with the `String` in `bars[i]`, thus the _dynamic variable name_. Why they're doing this is beyond me. If they clarify their question, we can vote to reopen. – Sotirios Delimanolis Oct 21 '16 at 14:42
-
Not sure what i need to clarify? Would there be an easier way of doing what im attempting to do? – elibretto Oct 21 '16 at 14:46
-
"Would there be an easier way of doing what im attempting to do?" - Yes. Simply use an array of `Bar` objects. Having a separate named variable for each bar is probably unnecessary. – Stephen C Oct 21 '16 at 15:20