O'Reilly logo

Visual C#® 2012: How to Program, Fifth Edition by Harvey Deitel, Paul Deitel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

8. Arrays; Introduction to Exception Handling

Begin at the beginning, ... and go on till you come to the end: then stop.

—Lewis Carroll

Now go, write it before them in a table, and note it in a book.

—Isaiah 30:8

To go beyond is as wrong as to fall short.

—Confucius

Objectives

In this chapter you’ll:

• Use arrays to store data in and retrieve data from lists and tables of values.

• Declare arrays, initialize arrays and refer to individual elements of arrays.

• Use foreach to iterate through arrays.

• Use exception handling to process runtime problems.

• Use implicitly typed local variables.

• Pass arrays to methods.

• Declare and manipulate multidimensional arrays.

• Write methods that use variable-length argument lists.

• Read command-line ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required