Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 843 Bytes

File metadata and controls

30 lines (23 loc) · 843 Bytes

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

  1. Clone the repository
  2. Open in IntelliJ IDEA (or any IDE)
  3. Build project with Maven
  4. 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