Lesson5 task2#10
Open
miklashevich wants to merge 4 commits into
Open
Conversation
AntonShtabnoy
requested changes
Feb 22, 2021
| @@ -0,0 +1,19 @@ | |||
| package by.miklashevich.lessson5.task2; | |||
|
|
|||
| public class Chislo { | |||
Collaborator
There was a problem hiding this comment.
Имена переводим на ангийский язык - никто не поймет русские слова написанные на латинице
| public String middleName; | ||
| public String adress; | ||
| public int numberCrediCart; | ||
| public int numberBancAccount; |
Collaborator
There was a problem hiding this comment.
Банковский счет может содержать буквы
Comment on lines
+5
to
+15
| public static boolean findAuthor(Book[] books, String author) { | ||
| for (int i = 0; i < books.length; i++) { | ||
| if (books[i].author.equals(author)) { | ||
| System.out.println("Книга автора " + " " + author + " " + books[i].name); | ||
|
|
||
| } | ||
|
|
||
| } | ||
|
|
||
|
|
||
| return false; |
Collaborator
There was a problem hiding this comment.
метод должен возвращать массив книг, искомого автора
Comment on lines
+20
to
+28
| public static String findPublishing(Book[] books, String publishing) { | ||
| for (int i = 0; i < books.length; i++) { | ||
| if (books[i].publishing.equals(publishing)) { | ||
| System.out.println("Книга издательства" + " " + publishing + " " + books[i].name); | ||
| } | ||
| } | ||
| return null; | ||
| } | ||
|
|
Comment on lines
+29
to
+37
| public static String findYear(Book[] books, int year) { | ||
| for (int i = 0; i < books.length; i++) { | ||
| if (books[i].year > year ) { | ||
| System.out.println("Книга выпущенна после" + " " + year + " " + books[i].name); | ||
| } | ||
| } | ||
| return null; | ||
| } | ||
| } |
AntonShtabnoy
requested changes
Feb 22, 2021
| public class CustomerService { | ||
|
|
||
|
|
||
| public static Customer print(Customer[] people, int chislo1, int chislo2) { |
Collaborator
There was a problem hiding this comment.
метод print (назваоние) вообще ничего не говорит что он делает, здесь вообще идет поиск покупателей. метод должен возвращать массив
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.