JavaRush
AI Academy
new
Promotion
Learning
Courses
Tasks
Quizzes
Games
Help
Schedule of nudges
Internship
Community
Users
Forum
Chat
Articles
Activities
Reviews
Subscriptions
Light theme

Lectures

  • Reviews
  • About us
  • CS50
Start
Start learning
Start learning
  • My progress
  • Courses
  • Quest map
  • Lectures
  • Java collections overview — why collections are needed

    JAVA 25 SELF
    26 level,0 lecture
    This lecture is a quick, hands-on overview of Java collections. We’ll discuss why fixed-size arrays are not enough, how collections help, and how to choose between List, Set and Map. We’ll show practical examples with ArrayList and HashMap, compare arrays with collections (operations add(), remove(), contains(), sorting via Collections.sort()), and finish by covering common pitfalls: raw types, imports, confusion between length and size(), order expectations, and primitives in collections.
    Open
  • List: ArrayList and LinkedList, basic operations

    JAVA 25 SELF
    26 level,1 lecture
    This lecture is a hands-on introduction to the List interface and its popular implementations: ArrayList and LinkedList. We will cover how to create lists, call basic methods ( add, get, set, remove, size, clear), iterate over elements, and search them. We will compare operation performance and discuss when to choose one implementation over the other. Finally, we will look at typical mistakes and how to avoid them ( IndexOutOfBoundsException, ConcurrentModificationException, a correct equals implementation, and working with generics).
    Open
  • Map: HashMap and TreeMap, keys and values

    JAVA 25 SELF
    26 level,2 lecture
    In this lecture, we examine maps in Java: the Map interface, key operations ( put, get, remove, containsKey), the differences between HashMap (fast access) and TreeMap (key sorting), iterating via keySet(), values(), and entrySet(), as well as typical pitfalls: expecting order in HashMap, using null keys in TreeMap, and issues with ConcurrentModificationException. Plenty of code examples and practical scenarios will help you confidently use Map in your projects.
    Open
  • Set: HashSet and TreeSet, element uniqueness

    JAVA 25 SELF
    26 level,3 lecture
    In this lecture, we break down the Set interface in Java: how it differs from List, how element uniqueness is enforced, how the implementations HashSet (fast, no order) and TreeSet (sorted) work, and when to choose which structure. We will cover important nuances about equals() and hashCode(), working with null, examples of common tasks (removing duplicates, checking uniqueness), and frequent mistakes.
    Open
  • Generics: why they are needed, basic syntax

    JAVA 25 SELF
    26 level,4 lecture
    We move from “raw” collections to type-safe code. In this lecture we explain why, before generics, collections based on Object led to runtime errors ( ClassCastException), how generics catch these at compile time, how to read and write constructs like List<String>, Map<String, Integer>, what the “diamond operator” <> is, and why type erasure is needed. Plus examples with your own generic classes and a breakdown of common mistakes.
    Open
Courses
  • Java Course
  • Python Course
  • Development with Claude Code
  • All 16 courses
University
  • Java FullStack
  • Python FullStack
  • AI Native Developer
  • Web FullStack
Community
  • Articles
  • Forum
  • Help with Tasks
Company
  • About us
  • Contacts
  • Reviews
  • Pricing
  • Questions and answers
JavaRush JavaRush: online courses in Java and other programming languages, where you learn by solving tasks. We started in 2012 with a Java course, and today there are 16 courses: Java and Spring, Python, web development, SQL, Go, C#, C++, Kotlin, Swift, Docker and AI development. More than 10,000 tasks with instant checks, and the first level of any course is free. Learn on your own or with a mentor at JavaRush University.
Follow us
Язык интерфейса
Русский
English
Українська
"Programmers are not born" © 2026 JavaRush Terms of Use and Privacy policy
MastercardVisa
"Programmers are not born" © 2026 JavaRush Terms of Use and Privacy policy