biznesman

Untitled

Jul 24th, 2021
1,101
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.company;
  2.  
  3. import java.util.*;
  4. import java.io.*;
  5.  
  6. public class Main {
  7.     public static void main(String[] args) {
  8.         File file = new File("input.txt");
  9.         try {
  10.             modScanner scanner = new modScanner(file);
  11.             StringBuilder stringBuilder = new StringBuilder();
  12.             while (scanner.hasNext()){
  13.                 stringBuilder.append(scanner.next() + '\n');
  14.             }
  15.             System.out.println(stringBuilder.toString());
  16.         } catch (IOException e) {
  17.             e.printStackTrace();
  18.         }
  19.     }
  20. }
RAW Paste Data