previous
|
start
|
next
"Hello, World" in Java
Simple but typical class
Ch1/helloworld/Greeter.java
Features:
Constructor
Greeter(String aName)
Method
sayHello()
Instance field
name
Each feature is tagged
public
or
private
previous
|
start
|
next