Hi,
I don't really understand how the toString method is used in the code below :
One of the possible result :
Initial State: [k, q, i, j, f, V, J, S, c, v, u', U, C, z, I, y, d, H, X, e]
Sorted: [C, H, I, J, S, U, V, X, c, d, e, f, i, j, k, q, u', v, y, z]
Reversed: [z, y, v, u', q, k, j, i, f, e, d, c, X, V, U, S, J, I, H, C]
I don't see any place where the toString method is called. But if i put it in commentary the result is not the same. Can someone help me, please ? thank you.
Ps : I take the code on the cd of the book "complete java 2 certification", in solution of the chapter 8.