I am using such linked list:
private Class Node
{
public int Num1;
public int Num2;
}
LinkedList<Node> list = new LnkedList<Node>();
Node n = new Node();
n.Num1 = 10;
n.Num2 = 100;
list.Add(n);
but now I don't know how to access Num1 and Num2 using my LinkedList. For example, I want to sort my linked list according to Num1 using Collections.sort(?) but I do not know how to specify that.