Further Java

University of Cambridge Computer Laboratory

Principal lecturer: Mr Timothy Harris (tlh20@cl.cam.ac.uk)
Taken by: Part IB, Part II (General), Diploma

On slide 3 `Why use classes', the field definitions are incorrect, they should be
   class Main {
     String names[] = new String[200];
     String numbers[] = new String[200];
   }
and similarly in the revised definition of Main


Slides 36 and 37 `Modifiers' should say that `only access modifiers may be applied to constructors' rather than that `there are no constructor modifiers'.


A semicolon is misplaced is the central part of Slide 76 `(Ab)using exceptions'. It should read

  for (int i = 0; ; i ++) {
    System.out.println (array[i]);
  }


Slide 123 `Input using inner classes' should include an additional closing bracket at the end of the source code, i.e.

addActionListener (new ActionListener () {
  public void actionPerformed (ActionEvent e)
  {
    ..
  }
});

IB | II(G) | Dip

Provisional information only
Generated at 18:01.29 on 18/9/2000