# [JEP 431](https://openjdk.org/jeps/431) examples Source: https://openjdk.org/jeps/431 ```java SequencedCollection names = new ArrayList<>(List.of("Alice", "Bob", "Carol")); String first = names.getFirst(); String last = names.getLast(); for (String name : names.reversed()) { System.out.println(name); } ``` ```java SequencedMap map = new LinkedHashMap<>(); map.put(1, "one"); map.put(2, "two"); map.putFirst(0, "zero"); Map.Entry newest = map.lastEntry(); ```