Table of Contents
Table of Contents
Introduction to the Java™ Platform
The Java Technology
The Java Programming Language
- Java Variables
Java Building Blocks
Control Flow Statements
while Statements
for Statements
if/else Statements
switch Statements
Java and Javascript
The Java Compiler
A first Java Program
Summary 1
In the beginning...
Objects overview
- Defining a Class
How the main() method gets called
Arguments to the main() method
Classes and objects in HelloWorldApp
Using and defining objects
Using object methods
Building a Java class
Using javadoc
Summary 3
Exercises 2
Another look at classes
Implementing classes
A Circle class
Soliciting input
Swinging inputs
Summary 4
Exercises 3
Data types, Operators, Documentation
Java Operators
The Java documentation
Comparisons
Java Arrays
Summary 5
Exercises 4
Formatting numbers
Reading and writing files
Simple Practical Example
Backword
© G. Hearn, & University of the Western Cape, 2006






