Advertisement
Guest User

Untitled

a guest
Aug 28th, 2014
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.24 KB | None | 0 0
  1. class Echo
  2. {
  3.    public static void main (String [] args) throws java.io.IOException
  4.    {
  5.       int ch;
  6.       System.out.print ("Enter some text: ");
  7.       while ((ch = System.in.read ()) != '\n')
  8.          System.out.print ((char) ch);
  9.    }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement