Java Compiler : Java Syntax
import java.util.LinkedList;
public class Main {
public static void main(String[] args) {
LinkedList boolean_values=new LinkedList();
boolean_values.add(true);
boolean_values.add(false);
boolean bool_value= boolean_values.getLast();
System.out.println("\nLast Boolean value is: "+bool_value); // This gives output as false
}
}