indeks arrayList Java

// to use index on ArrayList you have to use the getmethod.
for (int x = 0, y = myarraylist.size(); x < y; x++)
{
  totalsum += myarraylist.get(x);
}
Johiny