a group of related data items that share a comman name
int a[10] => an array of 10 similar data items which share a comman name "a"
arrays concepts is same in c and java
2006-12-05 01:51:28
·
answer #1
·
answered by maverickmonk 2
·
0⤊
0⤋
.
Not only in Java, Generally array is a collection data of similar type. For eg
Int a[10] - Here you could store 10 integers (numbers)
float b[7] - used to store 7 values with decimal points
char c[20] - u can store 20 characters
all the above are called array.
**********
Vasu M
**********
2006-12-06 00:40:40
·
answer #2
·
answered by V@su Maniram 3
·
0⤊
0⤋
Arrays are fixed-length structures for storing multiple values of the same type (int, double, objects, etc)
Each element in an array holds a distinct value. Elements are always referenced by their indices. The first element is always index 0 and the last element in the array is always the array's length minus one.
2006-12-05 09:54:38
·
answer #3
·
answered by Alberto J 1
·
0⤊
0⤋
an array is a group of data that is of the same data type, the size of the array is fixed. That mean that the number of data the array can contain is fixed.
example:
String array is a group of data that is of 'String' data type
car array is a group of data that is of 'Car' data type
uses:
String[]names = new String[6];
-'String' is the data type
-'names' is the name of the array
-6 is the amount of space in the array
2006-12-05 09:57:49
·
answer #4
·
answered by stealth_boi 2
·
0⤊
0⤋
I don`t know java.
But array means a collection of similar objects having same data type. I t is used in all programing languages.
2006-12-05 09:56:39
·
answer #5
·
answered by Neo 2
·
0⤊
0⤋
Check this link
http://java.about.com/od/beginningjava/l/aa_array.htm
http://www.pmg.csail.mit.edu/papers/popl97/node19.html
2006-12-05 11:55:35
·
answer #6
·
answered by V 5
·
0⤊
0⤋