10-21 Class Notes CS 107

10-21 Class Notes CS 107 - 10-21 Class Notes CS 107 Friday,...

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

View Full Document Right Arrow Icon
Announcements: Midterm #2 next week (in class Friday), program due Tuesday noon Questions? Last Time: Array examples Today: More array examples, Recursion Intuition Create our own;. See code online to illustrate this at: http://logos.cs.uic.edu/Examples%20And% 20Notes/notes/Java/ArraysAverageGrades/Arrays.htm a. Use the built-in ArrayList . Again see the above link for the code. b. What if the size of the array keeps changing while the program runs? Arrays Examples: Dynamic Array Example to do Character Recognition: /** * Program to illustrate a 2-dimensional array used for character recognition. * * @author Dale Reed * @version 3/8/04 * Running program gives: Average y-value is: 5 */ public class CharRecognition { int[][] charArray = { {0,0,0,0,0,0,0,0,0,0,1,0,0,0,0}, {0,0,0,0,0,0,0,0,0,1,1,0,0,0,0}, {0,0,0,0,0,0,0,0,1,0,1,1,0,0,0}, {0,0,0,0,0,0,0,1,0,0,0,1,1,0,0}, {0,0,0,0,0,0,1,0,0,0,0,0,1,1,0}, {0,0,0,0,0,0,1,1,1,1,1,1,1,1,0}, {0,0,0,0,0,1,1,1,1,1,1,1,1,0,0}, {0,0,0,0,1,1,0,0,0,0,0,0,0,1,0},
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

10-21 Class Notes CS 107 - 10-21 Class Notes CS 107 Friday,...

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

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