vendredi 29 mai 2015

get a specific value from arraylist element java

i have an arraylist where it has certain number of elements, each consisting of two values (day,cents) company.getAnnouncements().get(0)

The above code will retrieve the first element in the arraylist, but i only want the cents component of that element. How would you do this??

Aucun commentaire:

Enregistrer un commentaire