简体   繁体   中英

What should i use to store multiple images?

What should i use to store multiple images that i retrieve from for loop? array or list? Is there any example functions that i can use? Below is my example for loop where i get my data.

  JSONObject mainObject = new JSONObject(response.toString());
        JSONArray uniObject = mainObject.getJSONArray("result");
        for(int i = 0; i < uniObject.length(); i++) {
            JSONObject rowObject = uniObject.getJSONObject(i);
 co.img1 = ipAddress +"img/store/" + rowObject.getString("store_banner");
 }

Use ArrayList<>(); It's away more flexible than the normal array;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM