mechanics - Assignment Mechanics From ACM JTF Tutorial...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Assignment Mechanics From ACM JTF Tutorial September 2008 1 Getting started In the classic book The C Programming Language , Brian Kernighan and Dennis Ritchie offered the following observation at the beginning of Chap- ter 1: The only way to learn a new programming language is by witting programs in it. The first program to write is the same for all languages: Print the words hello, world This is the big hurdle; to leap over it you have to be able to create the program text somewhere, compile it successfully, load it, run it, and find out where the output went. With these mechanical details mastered everything else is comparatively easy. Downloading the hello, world programs Taking our inspiration from Kernighan and Ritchie, our first example will be a simple program that displays the hello, world message. You can download the code for this programalong with a copy of the acm.jar library and a couple of more advanced versions of the programfrom the following web address: http://jtf.acm.org/downloads/Hello.zip save the file and unzip it on your computer. When you have done so, you should see a directory named Hello that contains the following four files: HelloConsole.java , HelloDialog.java , HelloGraphics.java , and acm.jar . The first three are Java program files, the last one is the library file that contains the compiled code for the JTF packages....
View Full Document

This note was uploaded on 10/27/2009 for the course COMP SCI 1MD3 taught by Professor Various during the Winter '07 term at McMaster University.

Page1 / 4

mechanics - Assignment Mechanics From ACM JTF Tutorial...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online