To get the value of an element from an ArrayList, use the get(index) method For example:
get(index)
int a = arr. get(0);
int count = arr. size();
1000 ms 256 Mb Rules for program design and list of errors in automatic problem checking