/** * HelloWorld is an implementation of the token * introductory "Hello World" program. */ public class HelloWorld { /* the greeting to display when this getGreeting() is invoked */ private static final String GREETING = "Hello World!"; /** * @effects prints the string "Hello World!" to the console */ public static void main(String[] args) { HelloWorld myFirstHW = new HelloWorld(); System.out.println(myFirstHW.getGreeting()); } /** @return Returns a greeting (in English). */ public String getGreeting() { return GREETING; } }