Activities

If you would like to explore the topics covered in this hour a little more fully, try the following activities:

  • You can translate the English phrase “Hello world!” into other languages using the AltaVista website Babelfish, located at http://babel.altavista.com. Write a program that enables your computer to greet the world in a language such as French, Italian, or Portuguese.

  • Go back to the Saluton program and add one or two errors. For example, take a semicolon off the end of a line, or change the text println on one line to print1n. Save the program and try to compile it. Compare the error messages you get to the errors you caused.

To see solutions to these activities, visit the book's website at http://www.java24hours.com.

Get SAMS Teach Yourself Programming with Java™ in 24 Hours, FOURTH EDITION now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.