ps0
Class HelloWorld
java.lang.Object
ps0.HelloWorld
public class HelloWorld
extends Object
HelloWorld is an implementation of the token
introductory "Hello World" program.
HelloWorld is also the superclass for other classes in this package.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HelloWorld
public HelloWorld()
main
public static void main(String[] args)
- Effects:
- prints the string "Hello World!" to the console
getGreeting
public String getGreeting()
- Returns:
- Returns a greeting (in English).