Skip to content
This repository was archived by the owner on May 18, 2022. It is now read-only.

mock machine 2 submission#6

Open
shishiruniyal wants to merge 1 commit intoworkattech:masterfrom
shishiruniyal:master
Open

mock machine 2 submission#6
shishiruniyal wants to merge 1 commit intoworkattech:masterfrom
shishiruniyal:master

Conversation

@shishiruniyal
Copy link
Copy Markdown

No description provided.


@Override
public List<ExpenseLog> splitExpense(String expenseDetails) {
String[] details = expenseDetails.split(" ");
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.

This should not be part of your design. Should have created the expense object and passed here from the main method itself. Parsing the input should not be done here.

private String piadby;
private String owedBy;
private double amount;
public ExpenseLog(String piadby, String owedBy, double amount) {
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.

typo

@gcnit
Copy link
Copy Markdown
Collaborator

gcnit commented Oct 4, 2019

@shishiruniyal sorry for the delay! Was busy at work.

Code looks pretty good! Good enough to crack the round!

Gave a few comments. Please check.

@shishiruniyal
Copy link
Copy Markdown
Author

Thanks Gaurav for reviewing and feedback

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants