By the way, always use < myArray.length in the middle of a for loop to traverse your array. That way you can be assured of never going outwith the bounds of the array.
One question about ray.length -- that's not a method, it's a value, which is good, but I don't see it documented on that oracle page for the "Arrays" class. Why not?