Same comment as for toString in the other array class (another piece of duplicated code).