BlackBerry Interview Question

can you write a LinkedList function which adds a new element to list.