How To Properly Add Data To Arraylist - Android
I have a class the extends arrayAdapter. I am trying to add variables to the list but I am not sure exactly how to do so. Here is my current ArrayAdapter class. class Item {
Solution 1:
That's because you don't have a constructor that matches that signature. Simply make one.
class Item {
String username;
String number;
String content;
public Item (String username, String number, String content){
this.username = username;
this.number = number;
this.content = content;
}
}
Post a Comment for "How To Properly Add Data To Arraylist - Android"