| Class meeting |
Concept |
Examples from class |
|
Thursday 8 September
|
General Java syntax, Standard output
|
HelloWorld.java
|
|
Tue 13 September
|
Standard output
Variables, data types
Assignment statements
|
HelloWorld.java
DataTypes.java
|
|
Thu 15 September
|
Review Data Types, Constants
Arithmetic, some higher math
Casting
|
MinAndMax.java
Constants.java
Arithmetic.java
FunWithCasts.java
HigherMath.java
|
|
Tue 20 September
|
Using pre-defined classes, calling methods.
Standard input
|
ReadingFromKeyboard.java
|
|
Thu 22 September
|
Introduction to Graphics (coordinates, drawing, basic Colors)
Calling methods
Passing arguments to method calls
|
Drawing.java [some code to get us started]
Drawing.java (the drawing I did in class)
|
|
Tue 27 Sept
|
Object reference variables.
Object creation.
Using constructors.
More Graphics: creating custom Colors.
|
Drawing.java [updated]
ObjectCreation.java
StringExample.java
|
|
Thu 29 Sept
|
Accessor and Mutator methods.
Static methods, static member data.
Factory methods for object creation.
Wrapper classes and autoboxing (briefly)
|
AccessorMethods.java
StaticMethods.java
FactoryMethods.java
WrapperClasses.java
|
|
Tue 4 Oct
|
Expressions, selection using if statements.
I missed this class, so these examples are from my summer CS111 class.
|
Expressions.java
SelectionExample.java
FindSmallest.java
|
|
Thu 6 Oct
|
Selection: nested if/else statements
Comparing floating point numbers,
comparing objects (e.g. Rectangles),
and using the switch statement.
|
Craps.java
ComparingDoubles.java
ComparingObjects.java
|
|
Tue 11 Oct
|
Repetition using while loops.
Sentinel-controlled repetition.
Counter-controlled repetition.
|
SwitchExample.java
RepetitionExample.java
ReadingFromFile.java
CounterControlledLoops.java
|
|
Thu 13 Oct
|
Repetition using do-while loops.
For loops.
Using repetition to create animation.
I missed this class, so these examples are from my summer CS111 class.
|
Pause.java [to pause the animation]
BouncingBall.java [the starter code]
BouncingBall.java [my solution]
YesOrNo.java
Counting.java
CompoundInterest.java
|
|
Tue 18 Oct
|
User-defined classes, member variables
|
Circle.java
UsingCircle.java
|
|
Thu 20 Oct
|
User-defined classes: constructors, methods
|
DrawingCircle.java [some starter code]
Pause.java [to pause the animation]
Circle.java
DrawingCircle.java [my screen saver]
|
|
Tue 25 Oct
|
User-defined classes:
accessor and mutator methods,
parameter passing, return values
|
Circle.java
UsingCircle.java
|
|
Thu 27 October
|
User-defined classes, instance variables, constructors
toString, equals methods, static & final keywords
|
BankAccount.java
UsingBankAccount.java
|
|
Tue 1 Nov
|
Introducing arrays, arrays of primitives, arrays of Strings.
Array indicies, operations.
Passing an array to a method call.
|
UsingArrays.java
Stats.java
|
Wed 2 Nov LAB
|
Alex wrote these two files and asked me to post them.
|
ArrayOps.java
TestArrayOps.java
|
Thu 3 Nov
|
Allocating arrays with initializer lists.
Copying arrays -- reference (shallow) and members (deep)
|
InitializerList.java.java
CopyingArrays.java
|
|
Tue 8 November
|
Revisit deep copy with objects
Multidimensional Arrays
|
DrawingCircleAndDeepCopy.java
MultiDimArrays.java
ColorPicker.java
|
|
Thu 10 November
|
Revisit Multidimensional Arrays
Example with enumerated types
Introduction to inheritance
|
TicTacToe.java
Widget.java
|
|
Tue 15 November
|
Inheritance, class hierarchies
|
PlayingGames.java
|
|
Thu 17 November
|
Polymorphism, overiding methods.
|
PlayingGames.java
|
|
Tue 22 November
|
Exceptions, handling in try-catch
Generating (throwing) Exceptions
|
Exceptions.java
MyException.java
|
|
Tuesday 29 November
|
Using exception handling for validating user input
File Input/Output
Structured data files
|
ValidatingUserInput.java [exceptions]
ReadingFromTextFile.java [file I/O]
WritingToTextFile.java
Contact.java [helper class]
Contacts.txt [structured file]
StructuredFiles.java
|