Computer Science 1
Top Lectures Assignments Noticeboard

Starting Java

 

Modeling the program

How to write the program

Two lines = two messages to System.out Here, we used the System.out object, but we haven't modeled the human, or main program.

A valid Java main program must have:

The program:

Summary

Java stuff

Modeling the program as we've done is transferable to other languages.

Java rules

Identifiers

Keywords

Order of statements

Program format and comments

Format

Comments



Last modified: 1/10/99