Mr. Hollaway's Foundational Java Skills" introduces the dynamic and versatile ArrayList in Java. This tutorial is tailored for beginners and aims to cover the fundamentals of ArrayLists, a crucial part of Java's Collections Framework. Unlike static arrays, ArrayLists provide the flexibility to dynamically adjust their size, making them ideal for scenarios where the number of elements is unknown or varies. We'll dive into how to declare, initialize, and use ArrayLists, including adding, removing, and accessing elements. Additionally, this video will cover essential ArrayList methods such as size(),add(), get(), set(), and more, with practical examples to demonstrate their use. By the end of this tutorial, you'll have a comprehensive understanding of ArrayLists and how to effectively utilize their methods in your Java programs.
00:00 Introduction
00:22 Array review
00:39 Arrays vs ArrayLists
01:39 Making an ArrayList
04:04 Populating an ArrayList
04:38 add() method
07:23 remove() method
09:04 size() method
11:08 get() method
12:32 set() method
14:01 add() method with two arguments
Related Videos:
19 - For loops and ForEach Loops with ArrayLists - • Video
20 - Populating an ArrayList from an Array in Java - • 20 - Populating an ArrayList from an Array...