Notes
Lecture notes for CSC148
The CSC148
Handbook is now available online. This includes some
administrative information, and a few supplementary readings.
The entire set of lecture notes for CSC148 is now available online. We
will begin following these notes soon after Week 3.
Week 1
- Slides
- The history file from
Friday's Dr.Java session.
Week 2
Week 3
Food example:
Week 4
Catching up on readings from the text book. I encourage you to make
liberal use of the index of the text book. If there is something
from class that you are not familiar with, you can try looking up the
keywords in the index. This will often lead you to the right place
in the textbook.
- Chapter 2 -- A good introduction to the OO terminology, and on how to
design a class. You should read the whole chapter
- Chapter 3 -- You can breeze through parts of this chapter that talk
about the fundamental data types (3.1-3.4). You might want to pay
more attention to 3.5 and 3.6 which talk about calling static
methods from the Math class, and casting primitive types. Sections
3.7-3.10 are about Strings and Input. You probably want to check
them out if want more information about how to read from the
Console.
- Chapter 4 -- Omit
-
- Chapter 5 -- Much of this chapter should be review. Pay attention to
seccion 5.2 on comparing values and testing for null. If you are
shaky on boolean expressions, read section 5.4 carefully.
- Chapter 6 -- (read 6.1-6.4)
Covers loops. Although much of this chapter will be
familiar to you, there are some great tidbits of information
throughout in the sections called "Common Errors", "Quality Tips",
and "Advanced Topics". You can igore 6.5 to the end of the chapter
for now.
- Chapter 7 -- (read 7.1, 7.2, 7.7, 7.8)
This chapter uses a lot of terminology that I have not
used in class. In reading 7.1, and 7.2 you should focus on the
ideas and not worry too much about the terminology. For example,
you should find some similarities between the Purse and Coin
classes and the classes you are asked to design for A1, but you
don't need to know specifically what a UML diagram is. You can
more or less skip 7.3 and 7.4 for now. "Advanced Topic 7.1" and
Quality Tip 7.3" are worth reading. Section 7.7 and 7.8 which talk
about static methods and scoping, are also worth reading.
- Chapter 13 -- (read 13.4-13.6)
The chapter discusses ArrayLists and Arrays. Sections 13.4-13.6
are on arrays.
Week 5
More readings
- Chapter 11 -- Inheritance. (11.1-11.5, 11.7)
This is a fairly well-written chapter, and I
recommend reading it thoroughly. You can skip the Advanced Topics
11.1 and 11.2, as well as section 11.6 for now.
- Chapter 19 -- Linked Lists (19.1)
The text implements linked lists using an Interator. We haven't
covered Iterators yet, so you won't get much out of this chapter
yet. Stick with the notes for working on A2.++
Week 6
More readings
- Chapter 14 -- Exceptions (We didn't cover the finally clause, but you
should find it to be fairly straight-forward.)
- Chapter 9 -- Interfaces (9.1-9.3)
- Chapter 18.8 talks about Comparables
Exception example from class
Week7
Week 8
Readings
- Chapter 19.1, 19.2 -- Iterators and Linked Lists
Week 9
Readings
- Chapter 20.5 -- Trees
- Chapter 17 -- Recursion
Review
Slides postscript, pdf
Second year courses postscript, pdf
Last modified: Fri Dec 6 16:32:44 EST 2002