William M. Pegram
Home | Courses | Web Design | Office Software | Client-Side Scripting | Server-Side Scripting | About MeITP 120 Section 001 and 002N - Fall 2008- Schedule
The most current copy of this schedule can be found on the course web site at www.billpegram.com. PowerPoint references are to Savitch, whereas reading referendes are to Deitel.
Week Class Topics Reading/Homework Due Aug 25, 26 Course Information, Getting Started on Annandale Computers
- Introduction to Java - object-oriented, java application programs and main method, applets, command-line invocation and compilation and execution of Java programs and use of TextPad
Aug. 27, 28
- JDK and JRE; Setting Path and Classpath environment variables
- Comments and self-documenting programs (Program Style)
- Console Input using Scanner class, Console output using Println, Print, and Printf
- Import statement
- Variable declarations and primitive types
- Precedence and associativity rules, linearizing expressions
Chapter 2 Deitel (skip Section 2.9 Software Engineering Case Study), Chapter 2 Deitel (ppt) Sept 2, 3
- Equality and relational operators
- public, void, static, private keywords
- Declaring a class with a method and instantiating an object of the class
- declaring a method with parameters
- instance variables, set (mutator) and get (accessor) methods
- initializing objects with constructors
- floating point numbers and type float and double
Chapter 3 (skip Section 3.9 Using Dialog Boxes and 3.10 Software Engineering Case Study); If you need to set up Java on your computer at home or elsewhere, please consult the following articles - and install the Java JDK before installing TextPad
- "New to Java Programming - Introducing the Java Platform"
- "Setting Up and Getting Started in Java Programming" (plus installation notes for your particular operating system)
Sept. 4, 8
- Introduction to Java (sample)
- algorithm, psuedocode
- if, if-else, and if else if
- while statement
- Counter-controlled repetition
Assignment 1 (due 9/11), Chapter 4.1-4.8 Deitel, Chapter 4 Deitel (ppt) Sept. 9, 10
- sentinel-controlled repetition
- explicit and implicit conversion between primitive types
- increment and decrement operators
- compount, shorthand assignment operators
- Chapter 1 (ppt) (Savitch) (slides 1-56)
- Chapter 2 (ppt) (Savitch) (skip 15-21 and 23-26)
Assignment 2 (due 9/18), Chapter 4.9-4.13 Deitel Sept. 11, 15 Sept. 16, 17
- Flow Control - Part 1 (code sample
- for statement
- do while statement
- switch statement
- break and continue statements
- logical operators, short-circuit evaluation
- PowerPoints relating to input
Assignment 3: For Loops (due 9/25), Chapter 5.1-5.8 Deitel, Chapter 5 Deitel (ppt) Sept. 18, 22
- Chapter 3 (ppt) (Savitch) (skip 3.49-3.57 dealing with String methods)
- Flow of Control - Part II (code sample)
Exercises - Set 2 Sept. 23, 24
- Discuss Exercises Set 2
Exercises - Set 3 Sept. 25, 29
- Static methods & static variables
- Math class
- Methods with multiple parameters
- Argument promotion and casting
- Java API Packages
- Random class
- method overloading
- Overloading code sample (with error)
- Overloading code sample
- Overloading code sample
- Overload with identical signatures code sample (error)
Chapter 6.1-6.12 Deitel, Assignment 4 Static Methods (due 10/2), Chapter 6 Deitel (ppt) Sept. 30, Oct. 1
- declaring, creating, and intializing arrays
- length field
- enchanced for loop (for each loop)
- passing arrays to methods
- call by value and call by reference
- multidimensional arrays
- vararg specification
- command line arguments
Chapter 7.1-7.4, 7.6-7.7,7.9, 7.11-7.12 Deitel, Chapter 7 Deitel (ppt) Oct. 2, 6
- Chapter 5 (ppt) (Savitch) (slides 5.1-5.17 and 5.27-5.49)
- Chapter 6 (ppt) (Savitch) (skip 6.15-6.17 and 6.46-6.72)
Assignment 5 (due Oct. 12) Oct. 7,8
- Arrays1 (code sample
- SelectionSort (code sample)
Oct. 9, 15
- Quiz 1
Oct. 16, 20
- Suggestions for Improvement
- Review of Quiz 1
Oct. 21, 22
- Review of Quiz 1 (cont.)
- public and private modifiers
- Date.java, TestDate.java (collective coding in class
Chapter 8 (skip 8.9-8.10, 8.18-8.19), Chapter 8 Deitel (ppt) Oct. 23, 27
- Finished version of Date.java, TestDate.java (collective coding in class
- toString method
- the this parameter
- overloaded constructors
Oct. 29,30
- Chapter 4 (ppt) (Savitch) slides 4.1-4.59)
- Scope code sample
- Code sample with multiple classes
- Mutator method with constructor code sample
- Calling mutator method code sample
- Attempt to access private class members code sample
- Overloaded constructor code sample
- Using overloaded constructors code sample
- Accessor/mutator code sample
- Call accessor/mutator code sample
Assignment 6: Classes I (due Nov. 4) Nov. 3, 4 Nov. 5,6
- this constructor reference
- static import
- final modifier
- creating packages and specifying classpath
- package access
- Package code sample and using it sample
Nov. 10,11 Chapter 9 (skip 9.8) Nov. 12,13
- Chapter 7 (ppt) (skip 7.31-7.35)
Nov. 17,18 Nov. 19,20
- Quiz 2 on Chapters 3, 6-8
Nov. 24, 25
- Composition and Inheritance
- Abstract classes and methods
- Polymorphism code sample
Chapter 10 Dec. 1, 2
- Chapter 5 (ppt) (Savitch) (slides 5.67-76) - shallow vs. deep copy, copy constructor, mutable and immutable classes
- Chapter 8 (ppt)
Dec. 3, 4 Dec. 8, 9
- JOptionPane
- JFrame, JLabel, Icon, ImageIcon classes
- anonymous objects
- Code samples - Addition.java
Chapter 11.1-11.4 Dec. 10, 11
- JTextField, JPasswordField, ActionListener, ActionEvent classes
- inner classes
- event-driven programming
- Code samples - LabelFrame.java, LabelTest.java, TextFieldFrame.java, TextFieldTest.java
Chapter 11.5 Dec. 15, 16
- course evaluation
- Final Exam (primarily on material beginning with Nov. 10)
enumerated types, defining equals method for a class
Methods (sample) (craps only)
Defining Classes I (sample)
Defining Classes II (sample)
Arrays (sample)
Swing I (sample)
Applets (sample)
Assignment 4: Event Handling (may be revised)
Assignment 6 (may be revised),Last revised: December 12, 2008