| Lecture # | Theory | Programs |
| 1 | Syllabus | Give the class URL |
| 2 | The basic JAVA program structure | Intro to Objects print and println method |
| 3 | Java keywords and programming rules
Kinds of Errors Comments |
|
| 4 | Applets Vs Applications
The paint method and the graphics Object |
First GUI supplement |
| 5 | AWT, Colors and Shapes |
http://www2.hawaii.edu/~tp_200/ics111/material/AppletCanvas.html http://www2.hawaii.edu/~tp_200/ics111/material/appletPosting.html p. 21-27 First GUI supplement and parts of the second p.69-76. |
| 6 | Strings Objects with some properties of primitive data types. | |
| 7 | String Methods p51 plus indexOf,
replace & charAt Operators and Precedence p.46 & 47 Primitive Data types Numerical Typecasting |
java/Strings/StringMethods.java java/Numbers/NumbersSize.java |
| 8 | More about precedence p47,
table 2.4, p.50 Random Number Generators p228 Reading information from the user p98 |
java/Numbers/OneRandom.java java/ReadInput/KbdIn.java |
| 9 | Reading "numbers" from the user Throwing Exceptions p541 |
java/ReadInput/Parse.java
double java/ReadInput/Parse1.java int java/ReadInput/ParseI.java int w/try/catch java/ReadInput/ParseD.java double w/try/catch java/ReadInput/ParseIntDouble.java int/dbl w/try/catch |
| 10 | IF statements p.58 boolean variables p.81-83 Relational Operators p. 59 table 2.6 Short Circuit Evaluation p.402 -403 |
java/conditionals/IfElseDemo.java |
| 11 | String Methods, .equals, .equalsIgnoreCase and .compareTo Formatting Decimal Output Introduction to Applets |
java/Strings/StringCompare.java java/Strings/StringEqualsMethods.java java/Strings/NumFormat.java Intro to Applets |
| 12 | Applet Layouts, labels and buttons p.201 |
http://www2.hawaii.edu/~blanca/fall2000/FlowButtons.HTM http://www2.hawaii.edu/~blanca/fall2000/BorderButtons.HTM http://www2.hawaii.edu/~blanca/fall2000/GridButtons.HTM http://www2.hawaii.edu/~blanca/fall2000/PanelDemo.HTM |
| 13 | Action Listener,
page 203 TextFields |
http://www2.hawaii.edu/~blanca/fall2000/ListenerDemo.htm |
| 14 | Switch statements static methods |
java/switch/SwitchExample.java java/switch/SwitchNboolean.java java/methods/MethodCall.java |
| 15 | Methods | java/methods/MethodCall.java |
| 16 | While Loops | |
| 17 | For loops | |
| 18 | Files Input and Output | |
| 19 | String Tokenizers | |
| 20 | Creating Objects | Constructors and the .toString method |
| 21 | OO programming | get and set methods / The .equals method |
| 22 | ||
| 23 | ||
| 24 | ||
| 25 | ||
| 26 | ||
| 27 | ||
| 28 | ||
| 29 |