# How to declare and initialize 2d array

**URL:** <https://forum.uipath.com/t/how-to-declare-and-initialize-2d-array/149752>\
**Category:** Academy Feedback\
**Created:** [September 11, 2019, 4:16am UTC](https://forum.uipath.com/t/how-to-declare-and-initialize-2d-array/149752 "2019-09-11T04:16:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gaurav07](https://avatars.discourse-cdn.com/v4/letter/g/eb9ed0/32.png) [@Gaurav07](https://forum.uipath.com/u/Gaurav07)\
**Post date:** [September 11, 2019, 4:16am UTC](https://forum.uipath.com/t/how-to-declare-and-initialize-2d-array/149752/1 "2019-09-11T04:16:54Z")

</div>

how to declare and initialize 2d array

---

<div class="post-metadata">

**Author:** ![Lahiru.Fernando](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/lahiru.fernando/32/523857_2.png) [@Lahiru.Fernando](https://forum.uipath.com/u/Lahiru.Fernando)\
**Post date:** [September 11, 2019, 4:25am UTC](https://forum.uipath.com/t/how-to-declare-and-initialize-2d-array/149752/2 "2019-09-11T04:25:19Z")

</div>

Hello @Gaurav07

From the variable panel, type the variable name, and select the type as Array(T). Then you’ll get another small window to select the type of the array. In there, again select Array(T). Then another similar window will pop up. In there, select String. This will create a 2D string array.

How you are to initialize a 2D array is as follows

 ![image](https://global.discourse-cdn.com/uipath/original/3X/2/b/2b45863f1b5ac515413ab77ae539137565b0feda.png)

Sample  
`{({"123","ABC"}), ({"456", "CDE"})}`

Hope this helps.
