Skip to content

Lesson5 task2#10

Open
miklashevich wants to merge 4 commits into
masterfrom
lesson5_task2
Open

Lesson5 task2#10
miklashevich wants to merge 4 commits into
masterfrom
lesson5_task2

Conversation

@miklashevich

Copy link
Copy Markdown
Owner

No description provided.

@@ -0,0 +1,19 @@
package by.miklashevich.lessson5.task2;

public class Chislo {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Имена переводим на ангийский язык - никто не поймет русские слова написанные на латинице

public String middleName;
public String adress;
public int numberCrediCart;
public int numberBancAccount;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Банковский счет может содержать буквы

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;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

метод должен возвращать массив книг, искомого автора

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;
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

аналогично массив

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;
}
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

аналогично массив

public class CustomerService {


public static Customer print(Customer[] people, int chislo1, int chislo2) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

метод print (назваоние) вообще ничего не говорит что он делает, здесь вообще идет поиск покупателей. метод должен возвращать массив

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants