×

# Fast Input and Output in JAVA

 0 as such I know about BufferedReader and System.out.println(), but still is there any other FASTER way for Reading and Writing in Java. In the Problem, Turbo Sort, every Java Code consist of a user defined class which is taking Input and different class for output as well. Can anyone please guide me, I am really frustrated. I have tried Merge Sort, Quick sort for the above problem, I think the main thing in the question is Fast Input and Fast Output. Any tutorial/link with explanation about the code will be highly appreciated. asked 06 Sep '14, 23:17 2★mani93 1●1●3 accept rate: 0%

 0 You can try count sort. answered 07 Sep '14, 00:16 3★h9k6 54●1●1●5 accept rate: 0% sir I have tried count sort as well, even in this case, Time Limit is exceeded. That is why, I have changed my focus from sorting to Fast Input and Fast Output. (07 Sep '14, 10:58) mani932★
 0 Use PrintWriter class over System.out for writing output. PrintWriter is faster. I/O_Java answered 08 Sep '14, 01:56 1.9k●2●14●30 accept rate: 24%
 toggle preview community wiki:
Preview

By Email:

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• image?![alt text](/path/img.jpg "title")
• numbered list: 1. Foo 2. Bar
• to add a line break simply add two spaces to where you would like the new line to be.
• basic HTML tags are also supported
• mathemetical formulas in Latex between \$ symbol

Question tags:

×1,313
×61

question asked: 06 Sep '14, 23:17

question was seen: 5,495 times

last updated: 08 Sep '14, 01:56