The UA Java & Linguistics Group

point of the group


what is java


What we're doing

We're working through the first book below and developing various projects.

Some books

Campione, Mary and Kathy Walrath (1997) The Java Tutorial, Sunsoft Press, Palo Alto. [available FREE on the web!: http://java.sun.com/docs/books/tutorial/index.html]

Flanagan, David (1996) Java in a Nutshell, O'Reilly, Cambridge, second edition.

Flanagan, David (1997) Java Examples in a Nutshell, O'Reilly, Cambridge.

Koosis, Donald J. and David Koosis (1997) Java Programming for Dummies, IDG Books, Foster City.

Oaks, Scott and Henry Wong (1997) Java Threads, O'Reilly, Cambridge.

van der Linden, Peter (1997) Just Java and Beyond, Sunsoft Press, Palo Alto, third edition.

projects

pending....


Meeting times

Currently, we're meeting mondays at 9 in the SBSRI ICL computer lab.


links

etc.

some applets?


setup

how to use JDK

DOS window

edit, java, javac, appletviewer, javap

practice: try a couple

nongraphic

graphic/applet

nongraphic

public class mhhello {
	public static void main(String argv[]) {
		System.out.println("Hello world!");
	}
}

graphic

the applet

import java.applet.*;
import java.awt.*;

public class mhhello2 extends Applet {
	public void init() {
		setBackground(Color.green);
	}
	public void paint(Graphics g) {
		g.drawString("Hello world!",10,10);
	}
}
the html file
<html>
<head>
<title>A test</title>
</head>
<body>
<applet code="mhhello2.class" height=50 width=300>
You don't have a java-enabled browser!
</applet>
</body>
</html>