- Summary
- Arrays
- Declaration of array variables
- Creation of an array object
- Access to the single elements of an array
- Number of elements of an array: instance variable
`length` - Expressions that denote array objects
- Example: sum of the elements of an array of integers
- Example: exhaustive search of an element in an array
- Example: search of the maximum element in an array of numbers
- Example: inverting the contents of an array
- Parameters passed to a program
- Exercise: apartment owners
- The class
`ApartmentOwner`: representation of the objects - The class
`ApartmentOwner`: public interface - The class
`ApartmentOwner`: realization of the methods - Matrices
- Expressions that denote matrix objects
- Number of rows and columns of a matrix
- Example: printing out the elements of a matrix ordered by rows and by columns
- Example: sum of two matrices
- Example: product of two matrices
- Example: sums of the rows of a matrix
- Exercises