I searched for related questions but didn´t find a solution (at least i don´t know if i name it correctly)
So, i have two ArrayLists and i would like to randomize all of them to get a value:
public static ArrayList listOne(){
ArrayList<> listOne = new ArrayList<>();
listOne.add(new Team("Text One"));
listOne.add(new Team("Text Two"));
return listTwo;
}
public static ArrayList listTwo(){
ArrayList<> listTwo = new ArrayList<>();
listTwo.add(new Team("Text Three"));
listTwo.add(new Team("Text Four"));
return listTwo;
}
my desired output would be one of the four listItems.
Appreciate the help!
Aucun commentaire:
Enregistrer un commentaire