Repository navigation
Sheffield | 26-Java-June | Hassan Osman | Sprint 4 | Prep: Data Structures - #65
Open
HassanOHOsman wants to merge 30 commits into
Open
HassanOHOsman wants to merge 30 commits into
HassanOHOsman wants to merge 30 commits into
Conversation
…ctor that takes those arrays as parameters. Add getters to allow accessing those fields.
…names of students
… ONLY unique first names of students, in alphabetical order.
… of each student as key value pairs.
…so that duplicate elements are excluded. 2. Create a main method inside a Main class, and start calling methods to print into console
…rough lastname array and place each lastname with it's corresponding lastname as key-value pairs in the HashMap structure. 2. Add and resue the rest of the methods from StudentGrades class in the main method to print out their output
…trings). 2. Reflect this change on the constructor and getters.
2. Add the array sets into the main method and update the data to include twins.
…ise 2.1. 2. Remove module - exercise 2.2 for the above reason.
…ble output from objects
… results to new variables
2. Modify the collections to remove that student.
…e current value to 0
…ith the highest grade.
jacknewman1995
suggested changes
Sep 4, 2026
| public Set<String> getDistinctFirstNamesInAlphabeticalOrder(String[] firstNames) { | ||
| Set<String> set = new TreeSet<>(); | ||
| set.addAll(Arrays.asList(firstNames)); | ||
| return set; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Self checklist
In this PR, I answered all 4 exercises associated with the Data Structures segement from the Prep section.