Introduction to Programming in Java

 

Lecture Notes

Abbreviations

API = Application Programming Interface

I/O = input/output

NB allows you to annotate PDFs for yourself or for sharing with others. We are piloting NB on this course and will use the results of this pilot to decide whether this tool will be useful for other courses.

LEC #

TOPICS

FILES

NB PDFS

1

Types, variables, operators

(PDF)

(PDF)

2

More types, methods, conditionals

(PDF)

(PDF)

3

Loops and arrays

(PDF)

(PDF)

4

Objects and classes

(PDF)

(PDF)

5

Access control, class scope, packages, Java API

(PDF)

(PDF)

6

Design, debugging, interfaces

(PDF)

(PDF)

7

Inheritance, exceptions, file I/O

(PDF)

(PDF)

Assignments

NB allows you to annotate PDFs for yourself or for sharing with others. We are piloting NB on this course and will use the results of this pilot to decide whether this tool will be useful for other courses.

ASSN #

ASSIGNMENTS

NB PDFS

SUPPORTING FILES

1

GravityCalculator (PDF)

(PDF)

GravityCalculator.java (JAVA)

2

FooCorporation (PDF)

(PDF)

 

3

Marathon (PDF)

(PDF)

Marathon.java (JAVA)

4

Library (PDF)

(PDF)

Book.java (JAVA)

Library.java (JAVA)

5

Graphics! (PDF)

(PDF)

initial.png (PNG)

SimpleDraw.java (JAVA)

BouncingBox.java (JAVA)

DrawGraphics.java (JAVA)

6

Graphics strikes back! (PDF)

(PDF)

assn06.zip (ZIP) (This ZIP file contains: 6 .java files.)

7

Magic squares (PDF)

(PDF)

Mercury.txt (TXT)

Luna.txt (TXT)

Solutions (JAVA)