DEV Community

Cover image for PowerShell Array and ArrayList - storing multiple items as a one variable
Kamil Pro
Kamil Pro

Posted on

1

PowerShell Array and ArrayList - storing multiple items as a one variable

Link to the script: https://github.com/kprocyszyn/About-PowerShell/tree/main/PowerShell%20Array

Array is a basic data structure that allows to store multiple items in one variable. In this short video, I'll show you how to create a basic array, populate it with items, how to add, access and modify items within array.

In addition, I'll present to you how to use ArrayList - which is much more flexible array, especially for adding more items.

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay