Skip to content

Asmaa-Abdullah/java-assignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Java console application that reads JSON data and performs sorting, filtering, and name statistics.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages