Java Programming 2 (JP2)

Timetable

Course runs in Semester 1 (weeks 1-11)

  • Lectures:
    • Wednesday at 11:00
    • Friday at 11:00
  • Lab:
    • One 2-hour lab each week, at various times

Lecture log

Slides from the lectures are made available on this web page for browsing. Please do not print the .pdf files, which

would be wasteful of resources. Spare copies of printed lecture handouts are available outside the teaching office

(F141 in Lilybank Gardens).

 

Course text: W. Savitch, Absolute Java, International Edition, 3rd edition, Addison Wesley, 2007.

 

The Java API is here

 

Lecture no.

Lecturer

Date

Topic(s) covered

1

RWI

26/09

Introduction; first Java programs

2

RWI

28/09

Java fundamentals

3

RWI

03/10

Console input and output

4

RWI

05/10

Control structures

5

RWI

10/10

Classes in Java

6

RWI

12/10

More on classes in Java

7

RWI

17/10

More on classes: static methods / variables; shallow / deep copying

8

RWI

19/10

Class parameters; packages; Javadoc

Javadoc illustration:   Date.java          Date.html

9

RWI

24/10

Arrays in Java

10

RWI

26/10

Programming with arrays; searching and sorting; enum types

11

RWI

31/10

Programming case study: Mastermind

12

RWI

02/11

Inheritance

13

RWI

07/11

More on inheritance; access modifiers; class Object

14

RWI

09/11

Polymorphism; abstract classes

15

RWI

14/11

Exceptions

16

RWI

16/11

More on exceptions; testing and debugging; use of a debugger (demo)

17

RWI

21/11

File input and output

18

RWI

23/11

The ArrayList; generics

19

RWI

28/11

Interfaces

20

RWI

30/11

Programming case study: the Stable Marriage algorithm

21

RWI

05/12

Introduction to GUIs I

22

RWI

07/12

Introduction to GUIs II

Laboratory sheets

Lab no.

Week beginning

Lab Sheets

Solutions

1

01/10

Lab Sheet 1

2

08/10

Lab Sheet 2

3

15/10

Lab Sheet 3

4

22/10

Lab Sheet 4

5

29/10

Lab Sheet 5

6

06/11

Lab Sheet 6

7

13/11

Lab Sheet 7

8

20/11

Lab Sheet 8

9

27/11

Lab Sheet 9

-

03/12

No lab sheet this week

-

10

10/12

Lab Sheet 10  -  the Lab exam

 

Class test

The paper is here, model answers are here.

Assessment

  • Degree exam (May): 50% of marks.   The May 2008 exam paper is here. And model answers are here.
  • Lab exam (December): 30% of marks.
  • Class test (January):  20% of marks.

 

Contact Information

Lecturer:

Dr. Rob Irving

 

Office:

S111

 

Email:

rwi@dcs.gla.ac.uk