Programming Example 9: Arrays

Introduction

As you read through this example, look for code that illustrates these important principles that relate to using arrays:

  1. Declaring an Array
  2. Declaring an Array with an Initializer list
  3. Declaring a two dimensional array
  4. Using loops to process array data
  5. Passing an array to a method
  6. Overloading methods to work on different kinds of arrays
  7. Using the foreach loop
  8. Using the Split method to break a string into tokens
  9. Getting user data and saving it in an array
  10. Displaying the contents of an array

The example program is located here.