Here's another very simple example I got from an online source -sorry, don't remember where
class Echo
{
public static void main (String [] args) throws java.io.IOException
{
int ch;
System.out.print ("Enter some text: ");
while ((ch = System.in.read ()) != '\n')
System.out.print ((char) ch);
}
}
This will echo back up to a full line of text (note the '\n').
------------------
I'm a soldier in the NetScape Wars...
Joel