too easy Martin, though your not very efficient....:p
just a minor adjustment in the for loop since i'm a perfectionist..
for (int i=1 ;i<arr.length;i++) {
if (arr[i]>old) // element i is greater than old, not smaller
old=arr[i];
}
That should remove the unnessesary...