New course! Every coder should learn Generative AI!
Try a free lesson0
If i good understand your question.
If you have declared:
String[] tempList ={....}
you can write loop:
for(int i=0; i<tempList.lenght;i++){
tempList[i]="";
}
this was for set a values
for get a value from tempList[]
you should write for example (example for getting first element of table)
String someText=tempList[0];