/**
Just Try to Echo Text :]
@author Sky
*/
public class EchoText
{
public static void main(String[] args) throws java.io.IOException
{
System.out.println("Please enter some text and press Enter!");
int ch;
while ((ch = System.in.read()) != −1){
System.out.print((char) ch);
System.out.println();
}
}
}
javadoc EchoText.java //make documentation
or
java EchoText.java