CS0007: Introduction to Computer Programming
University of Pittsburgh
Spring 2004
Code from Class
It is generally a good idea to print out the code examples before class (this way you won't have to copy them from the board).
Week 2
HelloWorld1.java
|
HelloWorld2.java
UseAnInt.java
|
SimpleInput.java
Week 3
MakeChange.java
Week 4
Prac1.java
|
Prac2.java
|
Increment.java
HelloApplet.html
|
HelloApplet.java
(
run Hello Applet
)
FirstApplet.html
|
FirstApplet.java
(
run First Applet
)
(
code can be copied from:
~hclane/public/java/applet/
)
Week 6
Code segments from class
Week 7
GuessOp.java
|
BobAndDoug.java
|
UserLoop.java
swname.java
(buggy) |
swname2.java
(correct)
Brian Regan on UPS:
BR1
|
BR2
|
BR3
ups0.java
| (
ups0x.java
)
|
ups1.java
|
ups2.java
ups3.java
|
ups.java
(final)
(
code can be copied from:
~hclane/public/java/ups/
)
Week 8
Scope.java
Week 9
(this code can be found in ~hclane/public/html/java/ )
OnOff.java
(
Run
)
OnOff2.java
(
Run
)
OnOffDeluxe.java
(
Run
)
ColorMessage.java
(
Run
)
RandomPaint.java
(
Run
) (
Run a FUN faulty version
)
Week 11
Extra Exam 2 Review Material
Week 14
HelloFile.java
|
HelloFileRead.java
|
WordCount.java
testCipher.java
|
Encrypt.java
|
toast.txt
|
etoast.txt
Last updated: 4/9/04