Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

completed task #258

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dm-sorokin
Copy link

No description provided.


public class Main {

private final static Map<Book, String> library = new HashMap<>();
Copy link
Contributor

Choose a reason for hiding this comment

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

Если это static final, то это константа, а константы в джаве называются всеми большими буквами
Тогда LIBRARY

}
}

public static void findBook(String title, String author, int year) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Можно отсюда вернуть ее location тогда)

Copy link
Author

Choose a reason for hiding this comment

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

имеешь в виду, чтобы метод возвращал location?

removeBook("Ревизор", "Николай Гоголь", 1836);
printAllBooks();

}
Copy link
Contributor

Choose a reason for hiding this comment

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

Есть пара лишних пустых строчек. Если их удалить, то код будет чуть-чуть аккуратнее. Но мелочь совсем

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