Advertisement
Guest User

Untitled

a guest
Aug 19th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.97 KB | None | 0 0
  1. package com.bakes;
  2.  
  3. import java.io.BufferedReader;
  4. import java.io.FileNotFoundException;
  5. import java.io.FileReader;
  6. import java.io.FileWriter;
  7. import java.io.IOException;
  8. import java.io.PrintWriter;
  9.  
  10. public class C {
  11.     public static void main(String[] args) {
  12.         C park = new C();
  13.         park.calculate();
  14.  
  15.     }  
  16.  
  17.     private void calculate() {
  18.         BufferedReader in;
  19.         String strLine1;
  20.         String strLine2;
  21.         String strLine3;
  22.         PrintWriter out;
  23.         try {
  24.             in = new BufferedReader(new FileReader("input.in"));
  25.             in.readLine();
  26.             FileWriter outFile = new FileWriter("output.txt");
  27.             out = new PrintWriter(outFile);
  28.             int n = 0;
  29.  
  30.             while ((strLine1 = in.readLine()) != null) {
  31.                 n++;
  32.                
  33.                 String[] data = strLine1.split(" ");
  34.             }
  35.             out.close();
  36.         } catch (FileNotFoundException e) {
  37.             // TODO Auto-generated catch block
  38.             e.printStackTrace();
  39.         } catch (IOException e) {
  40.             // TODO Auto-generated catch block
  41.             e.printStackTrace();
  42.         }
  43.        
  44.     }
  45.    
  46.  
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement