Code for 2D Arrays, Simple ArrayList Example Plus Assignment 8

Here area code examples from last class: the 2D array example, the very simple ArrayList example, to get you acquainted with ArrayLists… and for those who are feeling brave, an example of an ArrayList loading and displaying info from a data file.

For next week, create a sketch, like we did in the midterm exam, that has objects and arrays, and uses a data from a text file as parameters for those objects. This data file should include many datapoints, and each point should have more than one parameter. (For example, you might have data on students, and each student could have an age and a favorite color). This is an opportunity to use the 2D array code we went over in class this week (see above).  If you are looking for a data set to use, you might find something of interest here: http://www.cs.princeton.edu/introcs/data/

Not all the sets will be appropriate for this assignment, but look around– you might find something interesting. Next class we will talk about where to find more static data sets online.  Have a great weekend!

This entry was posted in announcements, assignments. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>