java how to set an array back to empty code example Example: clear array java Arrays.fill(myArray, null);