Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement