This discussion is archived
4 Replies Latest reply: Sep 1, 2009 4:34 PM by 843853 RSS

One direction list object problem, need to inverse the numbers in it.

843853 Newbie
Currently Being Moderated
public class Node {
public int number;
public Node next;
}

By this object, I need to make the inverse of this array from this:
{1,2,3,4,5,6,7,8,9}

to make it like this:
{9,8,7,6,5,4,3,2,1}

can some one help me please to solve this problem?

Thank's!