Update index.md (#30718)

Added info about array values.
This commit is contained in:
Joe-Wilson
2019-01-22 14:05:33 -05:00
committed by Christopher McCormack
parent 589257cf02
commit 98cffcc7ac

View File

@ -149,7 +149,7 @@ Output:
### Multi-dimensional Arrays ### Multi-dimensional Arrays
Two-dimensional arrays (2D arrays) can be thought of as a table with rows and columns. Though this representation is only a way to visualize the array for better problem-solving. The values are actually stored in sequential memory addresses only. Two-dimensional arrays (2D arrays) can be thought of as a table with rows and columns. Though this representation is only a way to visualize the array for better problem-solving. The values are actually stored in sequential memory addresses only. Additionally, their coordinate system is different from cartesian coordinates in that array values are referenced row then column.
```java ```java
int M = 5; int M = 5;
int N = 5; int N = 5;