ArrayLists in Java: Making an ArrayList

Опубликовано: 12 November 2026
на канале: Read, Simon
6
like

So far, every variable you have used holds exactly one value. How do you store a whole collection of items where order matters? This video introduces the ArrayList, the easiest of Java's lists to use. You will see how to import it from java.util, how to say what kind of thing it holds with angle brackets, and how to create it with new. An ArrayList works like a train whose cars each hold one value. You will learn why it can only hold objects, so a list of numbers uses Integer rather than int, and how the add method couples a new car to the end.

Contents:
0:00 Introduction
0:47 ArrayLists
2:01 An ArrayList Is Like a Train
2:19 ArrayLists of Scalar Types
3:13 Adding Something to an ArrayList
3:46 Conclusion
4:14 Acknowledgement

The voice-over was synthesised by ElevenLabs from a clone of my voice. These materials were prepared with the assistance of Claude Opus 5.5, an AI model made by Anthropic.


На этой странице сайта вы можете посмотреть видео онлайн ArrayLists in Java: Making an ArrayList длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Read, Simon 12 November 2026, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 6 раз и оно понравилось like зрителям. Приятного просмотра!