Skip to content

Instantly share code, notes, and snippets.

@kishaningithub
Created February 16, 2015 10:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kishaningithub/fab13cc685e4462a01db to your computer and use it in GitHub Desktop.
Save kishaningithub/fab13cc685e4462a01db to your computer and use it in GitHub Desktop.
Performing java std io
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String strLine = in.readLine();
BufferedWriter out = new BufferedWriter(new OutputStreamWriter(System.out));
out.write(strLine, 0, strLine.length());
out.flush();
in.close();
out.close();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment