Iterate the array (inspect each element) and add each to an integer variable, something like:

int total;
for ( int i : arr1 )
{
total += i;
}