Singly-linked list/Element definition: Difference between revisions

Content added Content deleted
m (→‎{{header|Java}}: Added note about wrapper classes)
m (→‎{{header|Java}}: Corrected a type)
Line 148: Line 148:
Link<T> next;
Link<T> next;
T data;
T data;
Link(int a_data, Link<T> a_next) { next = a_next; data = a_data; }
Link(T a_data, Link<T> a_next) { next = a_next; data = a_data; }
}
}