HelloWorldTalk.java


Below is the syntax highlighted version of HelloWorldTalk.java from §1.1 Hello World.


/*************************************************************************
 *  Compilation:  javac -classpath .:jw-0817-javatalk.jar HelloWorldTalk.java
 *  Execution:    java  -classpath .:jw-0817-javatalk.jar HelloWorldTalk
 *
 *
 *  Says "Hello" use crude speech synthesis.
 *  Reference: http://www.javaworld.com/javaworld/jw-08-2001/jw-0817-javatalk.html
 *
 *************************************************************************/

import com.lotontech.speech.Talker;

public class HelloWorldTalk {
    public static void main(String[] args) {
        System.out.println("Hello World");
        Talker talker = new Talker();
        talker.sayPhoneWord("h|e|l|oo");
        System.exit(0);
    }
}


Copyright © 2007, Robert Sedgewick and Kevin Wayne.
Last updated: Tue Sep 29 16:17:41 EDT 2009.