Advertisement

Arrays

  • Mitsunori Ogihara
Chapter

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., n0 and n9. In Java, numbers surrounded by square brackets specify positions and the positions always start from 0.

Copyright information

© Springer Nature Switzerland AG 2018

Authors and Affiliations

  • Mitsunori Ogihara
    • 1
  1. 1.Department of Computer ScienceUniversity of MiamiMiamiUSA

Personalised recommendations