Java Compiler : Java Syntax
import java.util.LinkedList;
public class Main {
public static void main(String[] args) {
LinkedList height_Persons=new LinkedList();
height_Persons.add(6.4f);
height_Persons.add(5.1f);
height_Persons.add(5.3f);
height_Persons.add(6.1f);
height_Persons.add(6.8f);
height_Persons.removeLast(); // Removes 6.8
System.out.println("\n Heights of individual are are: "+height_Persons);
}
}