Hello fellow programmers, i have this code
public class IdiomsCollection {
private ArrayList<Idiom> idiomsList = new ArrayList<Idiom>();
public IdiomsCollection() {
loadIdioms();
}
private void loadIdioms() {
//creating new items in the list
Idiom i1 = new Idiom();
i1.setPhrase("Piece of cake");
i1.setMeaning("When something is easy to do");
i1.setUsage("That test that I took was a piece of cake");
idiomsList.add(i1);
}
}
I want to add the content of my ArrayList to my onCreate() method in another class, so when i run the app, i see my list on the screen. I am not sure how to do that, can anybody help me?