Java Compiler : Java Syntax
import java.util.LinkedList;
public class Main {
public static void main(String[] args) {
LinkedList doubles_nums=new LinkedList();
doubles_nums.add(12.5211312d);
doubles_nums.add(23.4213123d);
doubles_nums.add(52.2312312d);
doubles_nums.add(78.2412314d);
doubles_nums.add(98.4223423d);
double value= doubles_nums.getFirst();
System.out.println("\nFirst Element of LinkedList is: "+value); // This gives output as 12.5211312
}
}