import IVRForBeginners.*;

public class HelloWorld_JSharp extends NetClientCall
{
 public void Answer()
 {
  Synthesizer syn;
  StringBuffer c;

  playMessage("helloworld");
  waitIfPlaying();   

  syn = getSynthesizer();

  syn.speak("Please press a key on your telephone's key pad.");
  inputWait(1, '#', 10000);

  syn.speak("You entered ...");

  if ( inputAvailable() > 0 )
  {
   c = new StringBuffer();
   c.append( getChar() );
   syn.speak( new String(c) );
  }

  else  
   syn.speak("nothing");

  syn.speak("That was easy, wasn't it?");
  syn.wait();
 }

}