Computer Laboratory

Course pages 2012–13

Programming in Java

Course Lecturers

Alastair BeresfordAndrew Rice

Game of Life animations (Tick3*)

View all the submissions for Tick3*: all submissions

Audio representations of the Game of Life (Tick 5*)

Practical sessions

Students are expected to attend one practical session per week. The dates and times of the practical sessions associated with this course are as follows:

DateTimeTicker
Thursday 17th January2pm — 4pmA & B
4pm — 6pmC & D
Thursday 24th January2pm — 4pmA & B
4pm — 6pmC & D
Thursday 31st January2pm — 4pmA & B
4pm — 6pmC & D
Thursday 7th February2pm — 4pmA & B
4pm — 6pmC & D
Thursday 14th February2pm — 4pmA & B
4pm — 6pmC & D
Thursday 21st February2pm — 4pmA & B
4pm — 6pmC & D
Thursday 28th February2pm — 4pmA & B
4pm — 6pmC & D
Thursday 6th March2pm — 4pmA & B
4pm — 6pmC & D

Workbooks

You may find the restart guide (PDF) helpful if you need to reboot your PWF workstation from Windows into Linux.

Workbook Errata

The printed workbooks contain (at the very least!) the following errors. Errors are indexed by workbook (W), page (P) and line (L), which may be negative, indicating that the reader should count upwards from the bottom of the page. These errors have been corrected in the on-line versions of the workbooks shown above. If you find any further errors, please email ticks1a-admin[at]cl.cam.ac.uk.

ErrataCorrigeFrom
710-25three protected methodsfour projected methods ...ojgl2
71112provide implementation of setSourceThreeStarojgl2

Bit visualisation programs

You can download three bit visualisation programs from this website:

  • b2d.jar (exploring binary to decimal conversion)
  • d2b.jar (exploring decimal to binary conversion)
  • bitwise.jar (exploring bitwise operators)

To use the programs, download them to your home directory, start a new shell, and run the jar file as described in the workbook. For example, to run bitwise.jar you would type the following:

java -jar bitwise.jar

Each program will print out a helpful usage message which you can use to work out what additional options to give the program. Ask a demonstrator for help if you get stuck.