CS100 M Spring 2006
Prelim 3 Topics
You will use Java only in Prelim 3--do not write any MATLAB code.
Topics/Ideas
- variable types, casting, generating random numbers using Math.random()
- using methods in the Math class
- using methods in the Scanner class for reading input
- selection statement
- iteration (while, for loops)
- implementing/invoking static methods without objects
- class definition: instance/class variables, instance/class methods,
modifiers (public, private)
- object instantiation, references and alias
- method implementation and invocation
- method overloading
Students are responsible for all material covered in lectures, sections/labs, homework, and the assigned readings:
- Lecture and section (labs): up to and including 4/13 but exclude 1-d array
- Homework: Projects 4 and 5
- Assigned reading: See CS100M-->Lecture Materials, up to and including 4/13
but exclude 1-d array
We will give you the names of the methods in the Math and
Scanner classes that you may need on the exam, but we expect you to know
how to use these methods.
Statements students may not use: