MODULE 2q - Browsing


There are Web Browsers on both the PWF and Thor.  On Thor you should
use the Netscape browser.  Enter this browser with the following command:

$ netscape  http://www.cl.cam.ac.uk  &

This specifies not only that you want to use the Netscape browser but
that you want to start by visiting the Computer Laboratory's home page.

You may have to wait half a minute or more for Netscape to appear and
you may find yourself being invited to accept a License Agreement, in
which case...

Click  Acccept

Eventually information appears in the browser window and you will see a
list of headings including `Other' (you may have to scroll down to find
this heading).  `Other' refers to `Items which don't fit neatly...'

Click  Other

This brings up more headings including `Documentation'.

Click  Documentation

This brings up more headings including `Java documentation'.

Click  Java documentation

This brings up Local Java Documentation.  Under `Contents' note the
entry `Tutorials'.

Click  Tutorials

You will see the line: `The most up-to-date version of the Java Tutorial
can always be found here.'

Click  here

This brings up an on-line Tutorial by Mary Campione and Kathy Walrath.
Some people like this work and it is worth exploring it later but not
now!

Go Back to the `Local Java Documentation' page.  Near the top left-hand
corner of the Netscape window there is a button marked Back...

Click  Back            [You would do this twice to go back two pages.]

Scroll up (if necessary) to check that you are back at the Local Java
Documentation page.  Scroll down a screen and notice the next major
heading after `Contents' is `API Reference Manuals' with a sub-heading
`Java Development Toolkit'.

You will see the line: `The most up-to-date version of the JDK
documentation can always be found here.'

Click  here

Scroll down to the main heading `JDK API Documentation' and, a few lines
below this,...

Click  Java Platform Core API

You will see a list of the Java API Packages (Application Programming
Interfaces).

Click  java.lang

This brings up information relating to the  java.lang  package.  Notice
there is an Interface Index, a Class index and (scroll down a screen)
an Exception Index...

Click  ArrayIndexOutOfBoundsException 

Do not expect to understand the entry in detail but note that you are
told that this exception is `Thrown to indicate that an array has been
accessed with an illegal index.  The index is either negative or greater
than or equal to the size of the array.'

Scroll to the top of the Web page and note the entry Index on the top
line.  This is a general index to every feature of Java...

Click  Index

Note the alphabet  A B C D E F G H I J K L M N O P Q R S T U V W X Y
of letters (there is no Z) and...

Click  A

This brings up all the entries with the initial letter A but this is
the default initial letter anyway so the clicking was unnecessary.

Scroll down to ArrayIndexOutOfBoundsException.  This is an alternative
way of finding out about that exception.

Via the File Menu, Exit from the browser.


OTHER TASKS

By this stage of the course you should be able to attempt the following
problems in the Problems sheet:

 1.  The Fibonacci Series Problem

 2.  The Greenfly Problem

 3.  All Prime Numbers less than 600

 4.  A Sort Problem