Ok, well, first off, let me tell you what im trying to do, i have a program where i add numbers to an arraylist, then, i organize the arraylist so, i have for example, 10 elements in the array list:

arraylist list1;

Before: [1, 12, 21, 31, 32, 13, 1, 32, 31, 32, 31, 2]

After: [1, 1, 2, 12, 13, 21, 31, 31, 31, 32, 32, 32]

I can do that part simplle, then i devide the array list into 3, so in this case i get

m1 = 0-3

m2 = 4-7

m3 = 8-11

now, here is where im problem lies, i want to take all the elements 0, 1, 2, 3 of list1, then average all of them. I tried the list1.get() meathod, but i cant return the elements in the array list as int's. in this example, the average would be 7.00 (i would be using doubles) but i cannot get values of the arraylist. please help!