Monday, November 17, 2008

I Need A Raise

That should be "I need arrays".

Today we're tackling arrays. If you missed class then the homework will help you catch up.

Read Ch. 10, pp 237-241. Then do Questions 1, 2, 3, 4 and 14a, 14b, 14c, and, 14d.

Note that question 4 asks you to write a for-each statement but it turns out that J# hasn't implemented the for-each statement. (D'oh!)Use a regular for statement instead.

You should note that I've put a sample program that I wrote in class showing an array of strings being used in a for loop in the ICS3M\Arrays Handout folder. In addition, you can also find the powerpoint presentation for Arrays in that same folder. Make sure you look at the presentation in Notes view mode so you can see my notes which augment the information in the slides. I don't recommend that you try and rely on the slides alone without reading the text. There's a lot more information in the text that can be found in the slides.

No comments: