Selasa, 27 Agustus 2013

Code of Java 1

/**
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

Tidak ada komentar:

Posting Komentar