Created
January 11, 2010 03:28
-
-
Save bluepapa32/273968 to your computer and use it in GitHub Desktop.
InputStream to BufferedReader
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); | |
String line = null; | |
while ((line = r.readLine()) != null) { | |
System.out.println(line); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment