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

all conditions are met #1344

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

all conditions are met #1344

wants to merge 2 commits into from

Conversation

zAdamSz
Copy link

@zAdamSz zAdamSz commented Oct 2, 2024

No description provided.

Copy link

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

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

Great job on addressing the task! 🌟 The issues mentioned are minor and do not significantly impact the functionality or security of your code. Remember to keep an eye out for redundant empty lines and consider defining formatters as constants for better practice. Using a HashMap is not recommended for this task, but since this isn't a critical issue, I'm approving your PR. Keep up the good work, and always strive to refine your code! 👍

✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨

public class SalaryInfo {

public String getSalaryInfo(String[] names, String[] data, String dateFrom, String dateTo) {

Choose a reason for hiding this comment

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

The class or method implementation should not begin with an empty line. Please remove the redundant empty line at the start of the getSalaryInfo method.

public String getSalaryInfo(String[] names, String[] data, String dateFrom, String dateTo) {
return null;
// Формат дат
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd.MM.yyyy");

Choose a reason for hiding this comment

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

According to the checklist, if you create a formatter, it should be made a constant field. This will improve code readability and maintainability.

@@ -1,7 +1,53 @@
package core.basesyntax;

import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.util.HashMap;

Choose a reason for hiding this comment

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

The checklist specifies not to use HashMaps or any other Map data structure for this task. Try to solve the problem without using these data structures.

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