Increment variable names? [duplicate]
问题 This question already has answers here : Assigning variables with dynamic names in Java (7 answers) Closed 2 years ago . Okay so for what I am doing i need to increment my variables name, so for example int Taco1 = 23432..... int Taco2 = 234235656..... int Taco3 = 11111....... But instead i need it to be a variable like int X = 0; some method with loop or recursion() int Taco(X) = bla bla bla x++ Trying to get my variable names to auto name themselves incremented by 1 every time, so they don