ITEC 120
ITEC 120: Week 13
- Quiz on Chapter 6 on Thursday!
-
Program 4
due at 4:00 p.m.
noon on Friday of this week (before break)!
- Thanksgiving Break starts Saturday!
- Notes:
- Arrays! See the slides from the text.
- Array element initialization: Once an array is created, the
elements have default initial values. This is similar to object
fields having default initial values. The initial values for ints and
doubles is 0 and 0.0, respectively.
- Arrays as parameters:
public static void main(String[] args){
int[] a = {11,22,33};
int sum = sumIt(a);
System.out.println(sum);
}
static int sumIt(int[] anArray){
int theSum = 0;
for (int i=0; i < anArray.length; i++)
theSum += anArray[i];
return theSum;
}
Lab 21
Examples from Chapter 7
Chapter 7 Powerpoint Slides
Semester
Calendar
ITEC 120
ITEC 120: Week 14
- Thanksgiving Break, all week! Enjoy!
ITEC 120
ITEC 120: Week 15
- Back to work!
- Lab Quiz 5 on arrays on Friday!
- Class quiz on arrays on Monday of next week (12/6/2004)!
-
Programming Assignment 5
due midnight Wednesday 12/8/2004
- More on Arrays
- Arrays as parameters
- Arrays of Objects
- CD Collection Example
- Sorting, comparables and interfaces:
- Selection Sort (Section 9.4)
- Sorting arrays using Comparable Interface (Section 9.4)
- Interfaces (Sections 6.5 and 9.3)
- Lab 22
- Examples
- Slides from chapters
- Semester
Calendar
ITEC 120
ITEC 120: Week 16
- Class quiz on arrays on Monday!
- Inheritance
-
Programming Assignment 5
due midnight Wednesday 12/8/2004
- Lab 23
- Sorting, comparables and interfaces:
- Selection Sort (Section 9.4)
- Sorting arrays using Comparable Interface (Section 9.4)
- Interfaces (Sections 6.5 and 9.3)
- Examples
- Slides from chapters
- Semester
Calendar
ITEC 120
ITEC 120: Week 17