Copyright © 1997-1999 by Axel T. Schreiner. All Rights Reserved.

Programming with Java 2

Axel-Tobias Schreiner, Department of Mathematics and Computer Science, University of Osnabrück, Germany.

An introduction to programming with the Java 2 programming language.

Lecture notes for a course in the summer semester 1999, repeated in the summer semester 2000.

From here one can reach copies of the overheads used in class, the Java-2 documentation from Sun, and the programming examples used in class. The text does not constitute a complete transcript of the lectures. Additionally one should consult books about Java, object oriented programming, network programming, and about the World Wide Web.
A CD with this material is available from the author.
Um deutsche Seiten zu sehen, muß als Sprachpräferenz de eingestellt werden.

Directories

aufgaben There will be some programming assignments each week, possibly followed by a final exam...
code The programming examples are collected in directories that more or less correspond to the chapters of the lecture notes.
ftp Archived copies of the programming examples, the documentation, and the overheads as well as development kits, browsers, and related tools are available only from within the university of Osnabrück's local network using the file transfer protocol.
    A good starting point to look for Java tools on the Web are the Java Solutions and the Java Products & APIs at Sun Microsystems as well as Jeff Poskanzer's Home-Page.
html Here are the overheads used in class and the Java documentation and the examples from Sun's JDK (1.2.1).
pdf PStill was used to convert and index the overheads from the html area using the Portable Document Format. This is primarily suitable for printouts and (under Windows) for text searches.
    Depending on the computing platform you need special viewers or plugins which have to be installed beforehand.Viewers for Windows and Linux are available in the ftp area.

Local Availability of Java

Michael Dirska gave the following information concerning Java installations in the department's local area network:
Location/System Platform Command Java Version
Room 31/339 Intel/Linux 2.2.13 java 1.1.7B
java2 Classic VM (build 1.2.2-L, green threads, nojit)
iMacs Mac OS X Server 1.0.2 java 1.1.6
ramses
zeus
Sparc/Solaris 5.6 java Solaris VM (Solaris_JDK_1.2.1_02, native threads, sunwjit)
sol
dosuni
Intel/Solaris 5.7

Credits

Presumably because of a drastic decline in enrollment in mathematics we were only able to find two graduate assistants who are paid with funds drived from a position that we are unable to fill. This means that only 32 persons can be graded.

Participants can receive a certificate (Übungsschein) if they get 50% of the possible points of each problem set; one set can be skipped. 50% have to be achieved, too, if there is a final exam.

Foreign students and cognitive science students are supposed to get points under ECTS. The exact number, unfortunately, depends on the student's curriculum. A grade would be determined by a short oral exam at the end of the course or by the final exam.

Timetable 2000

Lectures Friday, 10:15 31/449a Schreiner
Friday, 12:30 s.t. 31/E06
Discussion Groups Thursday, 16:15 31/E05 Kühl
Office Hours Thursday after 15:00 b.a. 31/321 Schreiner
Tuesday 14:00-16:00 or b.a. 31/318a Kühl

Calendar 2000

April7 Introduction, Java versions, first program, first application.
14 first applet. integer types, Ranges, Try
21 Good Friday
25 integer types, input and output, throwing an Exception, wrapper classes, Cvt. floating point types, Ranges, Qgl. conditions, identity vs. equivalence, Cvt
28 characters and strings, i/o system: classes and architecture, Wc0, packages, classes, objects, dealing with the command line, Wc1 design of counters
May2 Wc1 vectors, matrices, clone(), cloning vectors, Bc counting bytes
5 Uc counting characters, encodings, nesting streams for counting, interface, system properties, Properties, inner classes, Hi
12 inner classes, Hi, strategies, Wc: count everything, search tree with inner classes (German preprint)
19 inner classes: arithmetic expressions, extension with tables
26 Main framework, Cat, Wc, file manipulationsLs
June2 Collection Classes, Sort, Freq (German)
9 threads and synchronisation
16 Pentecost
23 threads and synchronisation: Messenger. AWT: version problems, role of a graphical user interface, thread model, typical example with Button, instrumentation
30
July7
14