fastest way to clear an array in java code example Example: clear array java Arrays.fill(myArray, null);