Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.bakes;
- import java.io.BufferedReader;
- import java.io.FileNotFoundException;
- import java.io.FileReader;
- import java.io.FileWriter;
- import java.io.IOException;
- import java.io.PrintWriter;
- public class C {
- public static void main(String[] args) {
- C park = new C();
- park.calculate();
- }
- private void calculate() {
- BufferedReader in;
- String strLine1;
- String strLine2;
- String strLine3;
- PrintWriter out;
- try {
- in = new BufferedReader(new FileReader("input.in"));
- in.readLine();
- FileWriter outFile = new FileWriter("output.txt");
- out = new PrintWriter(outFile);
- int n = 0;
- while ((strLine1 = in.readLine()) != null) {
- n++;
- String[] data = strLine1.split(" ");
- }
- out.close();
- } catch (FileNotFoundException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement