Use Vector instead of Array