ITEC 1620 Lecture Notes - Lecture 12: Bounds Checking

65 views2 pages

Document Summary

An array is a programming language construct used to organize a list of objects. The values held in an array are called array elements of the same type. The element type can be a primitive type or an object reference. Therefore we can create an array of integers, an array of characters, an array of string objects, etc. An array is an ordered list of values. An array of size n is indexed from zero to n-1. A particular value in an array is referenced using the array name followed by. The entire array has a single name the index in brackets. [2] refers to the third value in an array. In java the array itself is an object that must be instantiated. The name of the array is an object reference variable. The scores array could be declared as follows: The type of the variable scores is int[]

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents