Advertisement
Guest User

Untitled

a guest
Jan 21st, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. import java.io.*;
  2.  
  3. public class Main {
  4. public static void main(String[] args) {
  5.  
  6. String tempLine, resultLine = "";
  7. try (BufferedReader reader = new BufferedReader(new InputStreamReader(
  8. new FileInputStream("input.txt")))) {
  9. while (((tempLine = reader.readLine())) != null) {
  10. for (String curString : tempLine.split("\t")) {
  11. resultLine += curString + " ";
  12. System.out.print(resultLine);
  13. }
  14. resultLine = "";
  15. System.out.println();
  16. }
  17. } catch (IOException ex) {
  18. ex.getMessage();
  19. }
  20.  
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement