N
N
nikita_chiru2016-05-15 22:36:44
Android
nikita_chiru, 2016-05-15 22:36:44

How to bypass the exact list size?

There is a part of the code
(catalog = new ArrayList();
for (int i = 1; i <= listData.size(); i++) {
catalog.add(new ListData(names[i - 1], cost[i - 1] , img[i - 1]));
})
, help to make it so that you don't have to insert the exact size of the list, but do it through listsize or something like that

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question