Karteikarten
Arrays - Vocabulary
Karten in diesem Stapel (13)
- 1What are arrays?Arrays are data structure to store the data of the same data type
- 2element of an arrayindividual units of an array
- 3array indexindex number starting from 0 in which order the array elements are arranged consecutively in the memory location
- 4name of the arraya reference variable to store the location where the first element of the array is stored.
- 5for(int i=0; ifor next loop
or enhanced for loop - 6for(String s: name) { ---- }for each loop
- 7for each loopused to retrieve elements without accessing to individual elements
- 8for next loop for arraysused when you need to access a particular element through its index
- 9arrayName.lengthgives the total number of elements in an array named arrayName.
- 10array can store theprimitive data types
objects - 11an array can store onlythe same data type
that means all the elements of an array should be of the same type - 12arrayName[5] refers to the6th element of the array
- 13apart from primitive data types arrays can also storeobjects
Informationen
- Beschreibung
- AP Computer Science (Arrays) Karteikarten am Arrays - Vocabulary, erstellt von vgeetha am 27/08/2013.
- Erstellt von
- vgeetha
- Aufrufe
- 111
- Tags
- Bewertung