I am trying to add another item to an existing List<> in my Android application. My List<> is initialised here:
List<ListsRecyclerViewList> list = new Arrays.asList(newListsRecyclerViewList("item", "item"));
The ListsRecyclerViewList class looks like this:
public String name;
public String date;
public ListsRecyclerViewList(String name, String date) {
this.name = name;
this.date = date;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDate() {
return name;
}
public void setDate(String date) {
this.date = date;
}
Is there any way to add another item to the List<>? Any suggestions on how to achieve this?
new ArrayList<ListsRecyclerViewList>(Arrays.asList(...))also...