About
Groups and sorts names and genders from console input using Java collections like TreeMap.
- Grouped Names By Gender From Console Input
- Read names and genders from user input via console;
- Grouped people by gender using
TreeMap
for sorting; - Printed results with proper formatting for each group.
- Completed Part One Of The Activity
- Read names separated by commas using
nextLine()
; - Split input string and trimmed names;
- Stored names in a
TreeMap
for automatic sorting; - Printed original and alphabetically sorted names;
- Prevented trailing comma using
lastKey()
comparison.
- Read names separated by commas using
- Initial Commit – Created base project and
.gitignore
.