How can I initialize a LinkedList with entries/values in it?

You can do that this way:

List<Double> temp1 = new LinkedList<Double>(Arrays.asList(1.0, 2.0));

Leave a Comment