I’m confused about on how to use this array in a way that is simple. Well I already passed the values from the JSON into a List and now I need to retrieve it using a loop (and just loop) but I don’t know how. Tried reading some answers but I found myself really confused in the end. I just want it to be simple as making a String array, loop and fetch data by getting the variable[index] simple as that but all the answers I’ve found just lead me into confusion. Help please.
Share
As I understand your question..
From Java List class you have to methods
add(E e)andget(int position).Appends the specified element to the end of this list (optional operation).
Returns the element at the specified position in this list.
Example:
But efficient way to iterate thru loop