|
CS 1410 -
Computer Science I
Fall 2009 |
Examples
Solutions to select labs and assignments will be posted here.
Some of these notes are a bit out of date, and some are superceeded by the material presented during this semester.
.java files (class
definitions).
Expressions - An overview: What is an expression? This set of notes covers some basics of expressions. Note that Joe uses some vocabulary in this tutorial that we have not used in class.
Values - A description of Java's primitive types: There are eight primitive data types in Java, this set of notes describes some of the basics of using them. Note that I use 'primitive values' where Joe uses 'scalar values'. These are the same thing.
Runtime exceptions We have not talked about exceptions yet, but you've probably seen them when you run your program. This set of notes describes exceptions and tells you why they happen.
Kinds of variables This is an extensive tutorial on the different kinds of variables. Note when Joe talks about 'Member variables', we call them 'fields' or 'instance variables'.
ArrayLists A great tutorial on ArrayList objects.
Common loop patterns This set of notes
lists some of the common patterns that are used when programming loops.
The patterns shown here are demonstrated with for-each loops,
but they could be adapted for while loops as well.
Notes on designing an ADT This is the first of two sets of notes that demonstrate how to design an abstract data type.