Vote count:
0
So I am trying to access the data members of an element in my arraylist, but eclipse shows that the data member is not a field.
System.out.println(users.get(i).name);
users is an arrayList and the language is Java.
Thanks!
asked 50 secs ago
ArrayList Java accessing element data variables
Aucun commentaire:
Enregistrer un commentaire