-
Notifications
You must be signed in to change notification settings - Fork 95
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
base: master
Are you sure you want to change the base?
completed task #258
Conversation
|
||
public class Main { | ||
|
||
private final static Map<Book, String> library = new HashMap<>(); |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Можно отсюда вернуть ее location тогда)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
имеешь в виду, чтобы метод возвращал location?
removeBook("Ревизор", "Николай Гоголь", 1836); | ||
printAllBooks(); | ||
|
||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Есть пара лишних пустых строчек. Если их удалить, то код будет чуть-чуть аккуратнее. Но мелочь совсем
No description provided.