Is it possible to name a variable using a variable in Java?

前端 未结 4 1824
没有蜡笔的小新
没有蜡笔的小新 2020-12-19 20:47

What I would like to do is have a loop that names a certain number of variables each time. So sometimes when I run the program, this loop will create say 3 variables a1, a2

4条回答
提交回复
热议问题