Introduction to Java 2 Programming Lecture 5 The Collections API Overview Collection classes Types of collection Working with Collections Sorting Collections Implementations…