2
A Review of Java
Objectives
A Java code refresher
Basic structuring of a program into classes
An introduction to documentation requirements
A brief look at UML, the Unified Modeling Language
Key Terms
constructor
data payload
encapsulation of data
instance variable
parse
primitive type
religious issues
spaghetti code
static variable
token
UML diagram
Introduction
Rather than try to break down Java into its constituent parts, we show in
Figures 2.1–2.6 the code
1
for a complete program, and we will refresh your memory
of Java from that example. This program has two classes and reads a data file of
name-and-course-number pairs and prints that data back to the ...
Get Data Structures Using Java now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.