You cannot construct local variable names on the fly in
Java.
You can construct member variable names on the fly using reflection, but there's a 99.99% chance that this would be the wrong approach to whatever problem you're trying to solve.
Based on what you've said so far, you want an array or ArrayList (both of which can be efficiently indexed numerically) or a Map (which provides fast lookup by name).