In the first\_activity.java I have the following:

```
        ArrayList<String> listItems = new ArrayList<String>();

```

Now in the second\_activity.java I want to do the following"

```
public void Method1(View view) {

    listItems.add("text");
    adapter.notifyDataSetChanged();

}

```

Im trying to use a specif string from the second activity and adding it to the ArrayList from the first activity, what is the correct way to do so?