Chapter 9 Study Guide - Chapter9StudyGuide 1.

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Chapter 9 Study Guide 1. Array- is a collection of fixed number components, wherein all the components are the  same data type 2. One dimensional array-is an array in which the components are arranged in a list form. 3. Ways to declare an array a. Int list[]; b. Int  alpha[] 4. Array components  a. arrayName[indexExp] 5. Index- is expressions whose value is non negative integer less than the size of the array  and when an array is first create the indexes are set to 0. 6. Array subscripting operator-[] a. Int[] list = new int [10] 7. Specifying array size a. Int arraySize b. System.out.print(“Enter the size of the array: “); c. arraySize = console.nextInt(); d. System.out.println(); e. Int[] list = new int[arraySize]; 8. Array initialization a. Double [] sales = {12.25,32.50,16.90,23,45.68} 9. Initial values- values placed between braces and separated by commas  10. Instance variable length-contains the size of the array
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
11. Dynamic arrays- arrays that are created during program execution
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 5

Chapter 9 Study Guide - Chapter9StudyGuide 1.

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online