This application is used in the following content:
- Video: Debugging Java code in IntelliJ IDEA
- Blog post: Debugging Java code in IntelliJ IDEA
If you'd like to follow along, please check out the branch debugger
.
A Java application for tracking student test scores. This application allows you to manage student records and their associated test scores, reading data from CSV files and providing a clear summary output.
- Read student test scores from CSV files
- Validate and store student information
- Track multiple test scores per student
- Calculate and display average test scores per student
- Generate summary reports of student performance
- Input validation for all data fields
- Java 21 or higher
- Maven 3.x
To build the project, run:
mvn verify
In class Main
, click the Run button in the gutter next to the class declaration or main method.
To run the application from the command line using Maven, run:
mvn exec:java -Dexec.mainClass="Main"
The application will read from test-scores.csv
in the project root directory and display a summary of all students and their scores.
The application includes several validation rules:
- Student IDs and names cannot be null or empty
- Test names cannot be null or empty
- Test scores must be between 0 and 10
- Test dates cannot be null
- CSV file must contain at least 5 columns per row
Main.java
: Application entry point and CSV processingStudent.java
: Student data model with validationTestScore.java
: Test score data model with validation
- JUnit Jupiter 5.10.0 (for testing)
- Maven Surefire Plugin 3.1.2 (for running tests)
This demo application was built with the help of: