Appending Arraylist to TextView
I am trying to add Arraylist to Text View But it gives an error while
adding it to TextView Declaration of Arraylist is:
ArrayList<Integer> a=new ArrayList<Integer>();
1. int arraylistSize = a.size();
2. for(int i = 0; i < arraylistSize; i++){
3. textview1.setText(a[i]);
4. textview1.setText("*");
At line 3 it gives "The type of the expression must be an array type but
it resolved to ArrayList"
No comments:
Post a Comment