0
I can't understand this array concept .plzzz anyone help me
19 Answers
+ 11
variable = value
array = [variable,variable,variable]
this is the simple concept of array :/
+ 1
in other type of declarations when u dont put (initialize) the array at the time of declaration u need to give the length while declaration
like
int a []=new int [10]
it will hold 10 values with index numbers 0 to 9
0
array is a collection of values of similar data type which come under the same name but with different index numbers.
suppose u want to save 5 numbers 10,20,30,40,50
so we use int a=10,b=20,c=30,d=40,e=50;
but a simpler idea will be saving all this under one name
int a []={10,20,30,40,50}
the index number of 10 will be 0 referred to as a [0]
of 20 will be 1 and so on....
0
there's a lot of ways to declare an array
in this one a []={1,2,3,4} u don't need to give the length the length will be no. of values u put
0
welcome
- 1
what is the maximum array length
- 1
so the length of the array is based on our length
- 1
kk thanx
- 3
kk
- 3
nxt
- 3
hooo good
- 3
u want help in learning java
- 3
then
- 3
array concept is finished??
- 3
kkk
- 3
can u explain some more
- 3
itis too hard to learn
- 3
hmm
- 3
hoo good