Skip to main content

CS101: Introduction to Computer Science I

Page path
  • Home /
  • Courses /
  • Course Catalog /
  • Computer Science /
  • CS101: Introduction to Computer Science I /
  • Unit 7: Arrays /
  • 7.1: Introduction to Arrays
Back to 'Unit 7: Arrays'
  • 7.1: Introduction to Arrays

    • Central Connecticut State University: Bradley Kjell's "Introduction to Computer Science Using Java, Chapter 46: Arrays" n>

      Read this chapter, which introduces arrays, a common data structure used to store data of same type.

      An array is a data structure that can contain a fixed number of values of a single type. The length of an array, i.e., the number of elements the array can hold, is established when the array is created.

      One-dimensional array occupies a consecutive block of memory. Each element in the array can be accessed through an index. The range of the index goes from zero to the size of the array minus one. A for loop is commonly used to initialize the values in a two-dimensional array.

    • Carl Burch's "Programming via Java, Chapter 19: Arrays" >

      Read this tutorial, which explains how to create, initialize, and access arrays.


Navigation

Art History
Biology
Business Administration
Chemistry
Communication
Economics
English
History
Mathematics

Creative Commons License
© Saylor Academy 2010-2018 except as otherwise noted. Excluding course final exams, content authored by Saylor Academy is available under a Creative Commons Attribution 3.0 Unported license. Third-party materials are the copyright of their respective owners and shared under various licenses. See www.saylor.org/open/licensinginformation for detailed licensing information.

Saylor Academy and Saylor.org® are trade names of the Constitution Foundation, a 501(c)(3) organization through which our educational activities are conducted.

Terms of Use | Privacy Policy