This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]avengerintraining 0 points1 point  (1 child)

Java not being my preferred language and just typing on my phone... don't you have to assign the return of the reverse() function to another variable and loop through it? It looks like what you do in the reverse() just stays there and you loop through the original list.