For decades, Java’s Collections Framework had a glaring inconsistency. Want the first element of a List? Call list.get(0). First element…