- 1
How to learn arrays in java
Or is it natural for beginners when they learn java
2 Answers
+ 1
An array is a array of variables that store an element as there value
int x[] = {1,2,3};
print(x[0]); // output 1
Is the same as
int x0 = 1;
int x1 = 2;
int x2 = 3;
print(x0); // output 1
0
Array is most common data structure that is used in almost all programming languages. So its better to learn it while you are learning Java or other programming language.
https://www.sololearn.com/learn/Java/2148/