lundi 6 novembre 2017

how can i get word from arraylist?

i made a arraylist data and when i do

  1. int last=data.size();
  2. int random = r.nextInt(last) + 0;
  3. string a = ""+data.get(random).toString();

a gets the address of the data.




Aucun commentaire:

Enregistrer un commentaire