# 2D Arrays, Sorting, and Binary Search

## Two-Dimensional Arrays

### Introduction to Two-Dimensional Arrays

A two-dimensional array is an array of arrays.

It can be thought of as having rows and columns.

Declaring a two-dimensional array requires two sets of brackets and two size declarators.

The first one is for the number of rows.

The second one is for the number of columns.

Example: