0

Hi everyone! i am trying to find the average from an arraylist conatining database values. My database table have 9 columns and has 168 rows. Now i need to find the average at an interval of 12.

My database table has time as 1 column and 8 other columns with parameters like temperature,rainfall and so on.... Now i need to calculate the average of the values at an interval of 12 hours. i query the result and store in a resultset and then i iterated it, but i have no idea of proceeding further after that. please give some suggestion or hints so that i can able to find the result.

please show me the way. Thanks in advance.