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

Update for the DB service implementation and repository #40

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

Conversation

oceanhhy
Copy link

No description provided.

System.out.println("Find by accidentId=" + accident);
return accident;
}
}
Copy link

@anil-kapoor anil-kapoor May 17, 2016

Choose a reason for hiding this comment

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

@oceanhhy try to use java8 code in filtering as we did in 1st homework, It will be more interesting to see. This code is also fine. 👍

@anil-kapoor
Copy link

@oceanhhy
how did you test your code? Please add testcases also.

timeOfDay = "AFTERNOON";
else if(hour < 24)
else if (hour < 24)
timeOfDay = "EVENING";
else
timeOfDay = "INVALIDTIME";

Choose a reason for hiding this comment

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

@oceanhhy on place of using many if else, you could try some enum.

@anil-kapoor
Copy link

@oceanhhy you are making good progress, Keep it up 👍

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