Skip to content

Instantly share code, notes, and snippets.

@mquezada
Last active August 29, 2015 13:57
Show Gist options
  • Save mquezada/9600952 to your computer and use it in GitHub Desktop.
Save mquezada/9600952 to your computer and use it in GitHub Desktop.
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
class IO_0 {
static public void main(String[] args) throws IOException {
BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
String line;
while(true) {
line = bf.readLine();
if(line == null) { // null es como None de Python, pero un poco menos astuto.
break;
}
System.out.println(line);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment