020-001-004

List Basics: Number List

Easy

Problem Description

In this problem, you will create a program that adds multiple elements to an ArrayList, retrieves elements by index, checks its size, and displays the result to standard output.

ArrayList Basics

ArrayList is a resizable array. Use add() to append elements to the list, get(index) to retrieve an element at a specific index, and size() to get the current number of elements. Implement a program that combines these three methods to manipulate an ArrayList.

Ready to Try Running Code?

Log in to access the code editor and execute your solutions for this problem.

Don't have an account?

Sign Up