Computer Laboratory

Course pages 2013–14

Programming in Java

Course Lecturers

Alastair BeresfordAndrew Rice

Game of Life animations (Tick3*)

View all the submissions for Tick3*: all submissions

View previous year's submissions: 2012-13, 2011-12, 2010-11, 2009-10, 2008-09

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

Practical sessions

Students are expected to attend one practical session per week on Thursdays which run from 2-4pm and 4-6pm. You may attend both sessions if you wish. The dates of the practical sessions associated with this course are as follows:

  • Thursday 14th November
  • Thursday 21st November
  • Thursday 28th November
  • Thursday 16th January
  • Thursday 23rd January
  • Thursday 30th January
  • Thursday 6th February

All classes take place in the Intel Teaching Lab in the Computer Laboratory.

Ticking sign-up

When you are ready to collect a tick you should sign-up online for a slots with a ticker. These ticking slots take place during the practical session in the Intel lab. You should take your work to your ticker at your chosen time. Tickers will also be able to assess ML ticks for you.

Ticking sessions for November 14th: Session 1, Session 2. The tickers this week will be available to tick ML exercises as well as the first Java practical.

Ticking sessions for November 21st: Session 1, Session 2. The tickers this week will be available to tick ML exercises as well as the first Java practical.

Ticking sessions for November 28th: Session 1, Session 2.

Ticking sessions for January 16th: Session 1, Session 2.

Ticking sessions for January 23rd: Session 1, Session 2.

Ticking sessions for January 30th: Session 1, Session 2.

Ticking sessions for February 6th: Session 1, Session 2.

Ticking sessions for February 13th: Session 1, Session 2.

Ticking sessions for February 20th: Session 1, Session 2.

Ticking sessions for February 27th: Session 1, Session 2.

Ticking sessions for March 06th: Session 1, Session 2.

Final ticking session on May 1st: Session 1, Session 2.

Note: the signup site is known not to work with Internet Explorer.

Workbooks

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
495by the index number of the patternby the line number of the patternmbg28
11415boolean t4 = t1 | t2 & t3; //falseboolean t4 = t1 | t2 & t3; //trueyy363
5*18,-5sounds.jarsound.jaranon

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.