The Department of Computer Science & Engineering
cse@buffalo
STUART C. SHAPIRO: CSE 115 C

CSE 115
Introduction To Computer Science for Majors I
Lecture C
Lecture Notes
Stuart C. Shapiro
Spring, 2001


First Java Programs

Reading
Barnes, Chapter 2
Brown U. Notes, Chapter 2

There are two kinds of Java programs:

Applications
are stand-alone programs usually run from the command line, using text I/O.
Applets
are small programs usually run from WWW pages, using Graphical User Interfaces (GUIs). Attaching them to web pages is too complicated for us just now, so we will run them using an applet viewer.

Copy and run the Hello application from Barnes, page 28.

Copy and run the BouncingBall application/applet from Brown U. Notes, page 32.

Review the Unified Modeling Language (UML) diagrams from Brown U. Notes, pages 27-28, and on the Lab2 assignment. Note the disagreement about where the diamonds go.

First Previous Next

Copyright © 2001 by Stuart C. Shapiro. All rights reserved.

Stuart C. Shapiro <shapiro@cse.buffalo.edu>