/* * Author: Johann Bach * Mat 2170, Section 2 * Exercise: Lab 1, #1 * Date: January 6, 2012 * File: HelloProgram.java * Purpose: This program displays "hello, world" on the screen. * It is inspired by the first program in Brian * Kernighan and Dennis Ritchie's classic book, * The C Programming Language. */ import acm.graphics.*; import acm.program.*; public class HelloProgram extends GraphicsProgram { public void run() { // Create a phrase and display to the user add(new GLabel("hello, world", 100, 75)); } // end of run() public static void main(String[] args){ new HelloProgram().start(args); } // end of main() } // end of class HelloProgram