where's the error
hey all, plz if any one can tell me where is the error in this method, its giving me arrayOutOfBounds error:
;
for(int i=0; i<arr.length; i++)
{
if(arr[i+1] == arr)
{
result += arr+arr[i+1];
}
if(result > maxResult)
maxResult = result;
}
System.out.println(maxResult);
thanks alot
Abed

