Java Name Statistics Assignment
A Java console application that reads a JSON file containing person data and performs various operations such as sorting, filtering, and frequency analysis of names.
Features:
- Load persons from a JSON file
- Count frequency of first names and surnames
- Sort names in ascending or descending order
- Filter persons by name
- Display names with even/odd occurrence counts
- Interactive console menu system
- Unit tests using JUnit 5
How to Run
- Clone the repository
- Open in IntelliJ IDEA (or any IDE)
- Build project with Maven
- Run the application (Run Main.java)
Menu Options
When running the program:
1 - Statistics of most frequently occurring names 2 - Sorted lists (first name & surname) 3 - Select sort order (ascending / descending) 4 - Filter names 5 - Odd/Even occurrences 6 - Exit