1. Basic Java
Lectures Review
of Basic Java
Program code: Console
class Place the text in the same directory as your
program and compile. Then use freely.
Exercises: Exercise
Sheet 1.
Lectures Static methods and Strings
Exercises: Exercise
Sheet 2.
Lectures Classes
Introduction
Exercises: Exercise
Sheet 3.
Lectures Instance Methods
Exercises: Exercise
Sheet 4.
Lectures Programming with classes
Exercises: Exercise
Sheet 5.
Lectures Arrays
Exercises: Exercise
Sheet 6
Assessed Exercise: Assessed
Exercise 1 Deadline:
see Weekly Schedule
Lectures Exceptions
Only Sections 1 to 3, incl., are part of the course.
Lectures Text Files Text
files You may omit sections 4 and 6.
Code ConsoleReader.java
Exercises: Exercise
Sheet 8
Lectures Recursion
Exercises: Exercise
Sheet 9
Extra Large
example
Extra exercises: Exercise
Sheet 9b. Solutions are in Solutions
9b. Do not look at these until you have attempted the problems
yourself.
Lectures Binary
Files Section 8 on copying files is not examinable.
Exercises: Exercise
Sheet 10 (A sample courses file: courses.dat
is provided for Exercise 4 -- right-click and "Save target as ...")
Assessed Exercise 2: Assessed
Exercise 2 A sample inventory file: books.dat
(right-click and "Save target as ...") Deadline:
see Weekly Schedule
Lectures Running
Times of Methods Sections 9 & 10 and calculating
the running time of methods with nested loops is not examinable.
Exercises: Exercise
Sheet 11 Solutions are in Solutions
to Exercise Sheet 11. Do not look at these until you have attempted
the problems yourself.
Lectures Object & Wrapper classes
Lectures Lists
Exercises: Exercise
Sheet 13
Lectures Sets
and Maps
Exercises: Exercise
Sheet 14
Lectures Quicksort
Section 3 is not examinable. You may be asked to explain Quicksort, but
you will not be asked to
code it.
The
partitioning code is fiully examinable, however.
Lectures Random
access files
Lectures Serialization
You will not be examined on serialization.