Howard:

Printing the array doesn't count. Nice solution.
_________________________
There are two types of vessels, submarines and targets.