Hi can anyone tell me is LinkedList concept supports J2me ..??? if yes please can you provide a sample code............
Thank You
Hi can anyone tell me is LinkedList concept supports J2me ..??? if yes please can you provide a sample code............
Thank You
There is no built-in implementation of a linked-list.
You would need to implement your own. For example:
In practice, you might be better just to use Vector or Hashtable.PHP Code:// this isn't a complete implementation!!
public class LinkedList {
private static class Node {
public Object element;
public Node next;
}
private Node start;
public void addAtStart(Object o) {
Node node = new Node();
node.element = o;
node.next = start;
start = node;
}
}
Graham.