This project is a CDR (Call Detail Record) report generator that reads data from a CSV file containing call records, processes the data, and generates a report for each phone number in the file.
- To get started with this project, follow these steps:
- Clone the repository to your local machine.
- Open the project in your preferred IDE.
- Make sure that you have the following dependencies added to your project
- Run the Main class to generate the reports.
This project is designed to generate a report for each phone number found in the input file. To use the project, follow these steps:
Create a *.txt
file containing call records. Each record should be on a separate line and should contain the following
fields:
- Call type (in the form of an integer)
- Phone number (in the form of a string)
- Start time (in the format
yyyyMMddHHmmss
) - End time (in the format
yyyyMMddHHmmss
) - Tariff index (in the form of an integer)
- Save the file as cdr.txt in the project directory.
Run the Main class to generate the reports.
The reports will be saved as text files in the reports
directory.