Java Generics Basics

Generics and collections are finally here! In this week you’ll learn what generics are for. And right after that we’ll start with collections, which are all using generics (or at least they should be). We’ll only look at the very basics of collections. The methods on each collection will be addressed next week.
Topics
- Generics
- The collections framework basics
Content
- Generics
www.geeksforgeeks.org/generic...
www.baeldung.com/java-generics
- The collections framework basics
www.programiz.com/java-progra...
Questions
If you have any questions about the content, please write them under the corresponding KZread video. The questions that are asked most will be discussed in the Saturday session. You can also ask your direct team members and the other participants. Please help each other as much as possible, if you see a question you know the answer too, please answer 😊 We’re doing this together!
Homework
- Continue working from last week’s project
- Replace arrays with appropriate collections
- Do you need classes with generics inside your project?

Пікірлер: 5

  • @Das.Kleine.Krokodil
    @Das.Kleine.Krokodil Жыл бұрын

    Great simple examples. There are no unnecessary details, as often happens.

  • @BrightBoost

    @BrightBoost

    Жыл бұрын

    Thank you, nice to hear!

  • @immythic8351
    @immythic8351 Жыл бұрын

    OMG !! I just tried this out and I believe you can add more than 1 type of object while creating the bag object! :O I wish I knew this before hahaha

  • @BrightBoost

    @BrightBoost

    Жыл бұрын

    Yes, any! But it will be fixed for that instance which one you'll choose (so it has added value compared to Object)

  • @immythic8351

    @immythic8351

    Жыл бұрын

    @@BrightBoost Yeah! I used Objects as types on one project and I felt really bad about it 😂 I like this solution, thanks a lot!