Answer the question
In order to leave comments, you need to log in
What is the mechanism for storing names in an array?
What is the technique for storing names in an array?
There is a list of 12,000 thousand names, they need to be sorted by name and transferred to a dynamic array, so that each line
of the array corresponds to one letter that the names begin with?
Answer the question
In order to leave comments, you need to log in
Each letter corresponds to a new row in the array.
HashMap<Character, List<String>>
Character
(your letters). And for the corresponding letter, add names to List<String>
HashMap<Character, String>
. Accordingly, when adding, you get a string and concatenate the new name with with the string.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question