Arrays

Lecture 1

Problem: How can a list of items of the same kind be kept?

  • Array declaration
  • Array reading and writing
  • Primitive type arrays vs. object arrays
  • Array bounds
  • Connection to for-loops
  • Resizing of arrays

Note: Arrays may start in the second half of the previous week.

Examples

Lecture 2

Problem: How can a table of items of the same kind be kept?

  • Passing arrays to methods
  • Arrays as return values
  • Multidimensional array declaration
  • Multidimensional array reading and writing
  • Ragged arrays [Optional]

Examples

Matrix multiplication

Lab

 
week3.txt · Last modified: 2008/04/17 13:10 by bwittman
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki