Here's java code I just whipped up (no good error checking, and very basic for the newbie), but since it isn't going to format right, I'll put it somewhere you can download it:
http://dl.dropbox.com/u/6076492/ArrayFun.java
The output looks like this:
--Start array
Array values: [0, 0, 3, 0, 0, 0, 7, 0, ]
--New array, initialized
Array values: [0, 0, 0, 0, 0, 0, 0, 0, ]
--New array, drained
Array values: [3, 7, 0, 0, 0, 0, 0, 0, ]