How to read first element from LinkedList?

rencontres dynamite http://godswayradio.com/?rtyt=cherche-femme-enceinte-pour-discuter&2a7=49 How to read first element from LinkedList?

Continue Below example shows how to read first element from LinkedList. LinkedList provides few methods to read first element, those methods are:

look here see post element(): Retrieves, but does not remove, the head (first element) of this list.
hop over to this site getFirst(): Returns the first element in this list.
rencontre nuits saint georges peek(): Retrieves, but does not remove, the head (first element) of this list.
useful source peekFirst(): Retrieves, but does not remove, the first element of this list, or returns null if this list is empty.

package linkedlist; import java.util.LinkedList; public class FirstElementLinkedList { public static void main(String[] args) { LinkedList<String> arrl = new LinkedList<String>(); arrl.add("First"); arrl.add("Second"); arrl.add("Third"); arrl.add("Random"); System.out.println("First Element: "+arrl.element()); System.out.println("First Element: "+arrl.getFirst()); System.out.println("First Element: "+arrl.peek()); System.out.println("First Element: "+arrl.peekFirst()); } }

Clicking Here Output:

First Element: First
First Element: First
First Element: First
First Element: First