Abstract
An array is a finite sequence of elements of some common data type, where an element of an array can be accessed by combing the name given to the array and the position of the element in the sequence, called index. Arrays are reminiscent of number sequence. In mathematics, an element of a number sequence is specified by the name of the sequence and the subscript representing the position of the element in the sequence, e.g., n 0 and n 9. In Java, numbers surrounded by square brackets specify positions and the positions always start from 0.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2018 Springer Nature Switzerland AG
About this chapter
Cite this chapter
Ogihara, M. (2018). Arrays. In: Fundamentals of Java Programming. Springer, Cham. https://doi.org/10.1007/978-3-319-89491-1_12
Download citation
DOI: https://doi.org/10.1007/978-3-319-89491-1_12
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-89490-4
Online ISBN: 978-3-319-89491-1
eBook Packages: Computer ScienceComputer Science (R0)