Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question