Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要动态设置类实例的名称。
GetDataPoint "This Name has to be dinamically" = new GetDataPoint();
我需要此类 GetDataPoint 的动态实例数。有人可以帮忙吗?
一个例子:
ArrayList<GetDataPoint> data = new ArrayList<GetDataPoint>(); int amountOfData = 5; for(int i = 0; i <= amountOfData; i++) { data.add(new GetDataPoint()); }
循环遍历数据列表以检索 GetDataPoints。