Schedule and Assignments for Introduction to Java
Six class sessions over three weeks
Each class session has a reading and programming assignment
Assignments should be done prior to class
Primary reading and programming assignments are from Tutorial listed below.
Optional supplementary reading from TIJ and Nutshell
Resources: All but Nutshell are available on Web and on CD-ROM supplied in class.
SDK and docs. Sun's Software Development Kit for Java.
Tutorial: Online tutorial by Bradley Kjell, Connecticut State University. Primary resource.
http://chortle.ccsu.ctstateu.edu/cs151/cs151java.html
Local
version
TIJ: Thinking in Java, 2nd Edition, by Bruce Eckel.
http://www.bruceeckel.com/TIJ2/index.html
(zipped
files for download)
Local
unzipped version of text
Local
unzipped version of code examples
Nutshell: Java in a Nutshell, Third Edition, by David Flanagan. O'Reilly. Available at bookstores
Programming assignment 1. Install the SDK and docs. Compile and run HelloWorld. Follow instructions on CD-ROM.
Review basic computer architecture if needed. Tutorial chapters 1, 2, 3, 4
Read tutorial on compiling and running Java chapters 5 , 6 , 7
Class 1 Powerpoint slides. Best viewed in Explorer, but Netscape works.
Objectives
Practical issues: Resources, assignments
Review of programming assignment
Review of computer architecture
Programming languages
Evolution of programming languages
Java versus Lisp
Translation from source to machine language: compilation, interpretation
The Java Virtual Machine
How I learn a new programming language: principles
How I learn a new Algol-like language: steps
Assignment for next class
Additional Information
Nutshell: Ch 1
TIJ: Introduction
Review of compiling and running programs
Primitive data types
Variables, expressions, and the assignment statement
Review of programming assignment
Reading the java docs
Introduction of next assignment
Additional Information
Other chapters in tutorial: 9B,11,13,14,16-23
Nutshell: Ch 2, pp19-58
TIJ : Ch 3 pp133-188
Programming assignment 3. Chapter 10 Exercise 1, Chapter 12 Exercise 2, Chapter 15 Exercise 1
I/O
If Statement
Loops and the while statement
Additional Information
Other chapters in tutorial: 26-29, 32-34, 34B
TIJ: Ch 3
Programming assignment 4. Chapter 30 Exercise 3
Introduction to Objects in Java
Constructing your own objects
Discuss programming assignment
Reading and programming assignment for next class
Additional Information
TIJ: Ch 1,2
Nutshell: Ch 3
Programming assignment 5. Chapter 31, exercise 1
Designing Interacting Classes
Inheritance
Discuss programning excercise
Additional Information
TIJ: Chs 4-9
Nutshell: Ch 3-4
6 Monday March 5: Applets, The World of Java, and Where Do We Go from Here?
Tutorial: Ch 36
Programming assignment 6. Chapter 36 Exercise 1
Extra credit: Add a button that toggles the background between blue and green.
Applets
Programming assignement: applet that displays your name centered in a circle
Graphical User Interface Programming
Making the applet interactive
Versions of Java
The Java Foundation Classes
Development environments
Other topics: Beans, Enterprise Java
Additional Information