Skip to content

Test

Amruta Hulagar requested to merge test into master

Summary by Bito

This PR enhances the Java project by introducing a new person management system with comprehensive input validation and error handling in sample.java, while also updating the home endpoint message in the Spring Boot DemoApplication. The new sample application demonstrates collection management, user input processing, and data analysis using modern Java features.

Detailed Changes
  • Introduces a new Person class and Main class in sample.java with a person management system that accepts user input through Scanner with try-catch exception handling and validates age values to ensure they are positive integers, throwing IllegalArgumentException with descriptive error messages for invalid inputs
  • Adds stream-based average age calculation in sample.java using mapToInt and average operations to compute statistics across the person collection
  • Updates the home endpoint return message in DemoApplication.java from 'Spring is here!' to 'This a test!'
Edited by Amruta Hulagar

Merge request reports