Open
Conversation
59b5ce5 to
78fb3d7
Compare
evgenushka
reviewed
Feb 13, 2025
| private static final Random RANDOM = new Random(); | ||
| private final String[] authors = {"Jane Austen", "Harper Lee", "Scott Fitzgerald", "Gabriel Garcia", "Truman Capote"}; | ||
| private final String[] titles = {"Pride and Prejudice", "To Kill a Mockingbird", "The Great Gatsby", "One Hundred Years of Solitude", "In Cold Blood"}; | ||
| private final Integer minPages = 300; |
Collaborator
There was a problem hiding this comment.
я бы оставила в верхнем регистре
evgenushka
reviewed
Feb 13, 2025
| menu.addAction("3", "Вывод массива объектов на экран", print_array_menu); | ||
| menu.addAction("4", "Сортировка массива", null);//TODO | ||
| menu.addAction("5", "Выход", null); | ||
| menu.addAction("1", "Заполнение массива объектов из файла", null); |
Collaborator
There was a problem hiding this comment.
А почему эти три пункта через fill_array_menu не стал делать, по аналогии с sort_array_menu?
evgenushka
reviewed
Feb 13, 2025
| // Если места нет увеличиваем размер массива | ||
| if (startIndex >= objects.length) { | ||
| storage.expandArray(size); | ||
| objects = storage.getObjects(); |
Collaborator
There was a problem hiding this comment.
у нас не было требования писать всё в один массив
режим дозаписи был озвучен в задании для записи вывода в файл. вывода и результатов поиска
в части заполнения массива данными мы создаём массив определённой длины по введённой от пользователя размерности. если корректных данных для полного его заполнения не хватит, то пересоздаём массив размерности по кол-ву реально созданных эл-тов и помещаем их в него.
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.
No description provided.