samedi 18 novembre 2017

Place random object on ArrayList

I have and array list that holds objects and i want to put randomly, some objects. Which is the faster way to do this?

 ArrayList<object> arr = new ArrayList<object>();

Is there a method ? Or, can i 'play' - create my own method using a random integer ?




Aucun commentaire:

Enregistrer un commentaire