The Programming Basics
The Program Processing
Primitive Data Types
Using Java Classes
Partial API for the Math class
Partial API for the String class
Partial API for the Scanner class
Boolean expressions
The if, if/else statements (4 slides per page)
Introduction to writing methods (4 slides per page)
The while and do-while loop statements (4 slides per page)
The for-loop statement (4 slides per page)
Writing user-defined classes (4 slides per page)
Primitive and object variables (4 slides per page)
Arrays of primitive values (4 slides per page)
Arrays of object references (4 slides per page)
Moving data within an array (4 slides per page)
Two-dimensional arrays (4 slides per page)
Some sorting and searching algorithms (4 slides per page)
MySecondProgram.zip - example of
a Java program to load into Eclipse
Numbers.zip - examples of numbers (primitive
data types), expressions
Strings.zip - example using Strings and Scanner
UsingClasses.zip - examples of using Math, String, and Scanner classes
TruthTables.zip - example of writing methods with parameters
Loops.zip - exercise writing for loops
completed
PiggySixGame.zip - two person dice game (incomplete)
SodaCan.zip - completed code started during lecture
DiceRoller.zip - another example of a user-defined class
ElevatorController.zip - the user-defined class from the lecture notes
GiftCard.zip - demonstrates aliases and the equals method
DataAnalyzer.zip - illustrates arrays
JaiAlai.zip - example of an array of object references
JaiAlai object diagram
RadioStation.zip - exercise on
writing some standard operations on a collection of objects (traverse, insert,
remove)
Completed PlayList
MusicLibrary.zip - exercise on
writing some standard operations on an (ordered) collection of objects (insert, remove, filter)
MusicRack (completed)
Arrays2D.zip - exercise using two-dimensional arrays
Sorting.zip - sorting algorithms