All pastes #814983 Raw Edit

Unbenannt

public java v1 · immutable
·published 2007-12-13 18:06 UTC
rendered paste body
public class LinkedList implements List {		protected static class ListNode implements List.Node {		  public int data;     		  public ListNode next; 		  public int getData() { return data; }		  ListNode() {			  data = 0;		  }		  ListNode (int x) {			  data = x;		  }		}		int laenge = 0;	ListNode head = new ListNode();	ListNode tail = new ListNode();		LinkedList() {		head.next = tail;		tail.next = null;	}	public void add(int a) {		ListNode ln = new ListNode(a);		head.next = ln;							}