Skip to content

Completed all methods#1

Open
ryanrmills wants to merge 5 commits intoauberonedu:mainfrom
ryanrmills:main
Open

Completed all methods#1
ryanrmills wants to merge 5 commits intoauberonedu:mainfrom
ryanrmills:main

Conversation

@ryanrmills
Copy link
Copy Markdown

No description provided.

Comment thread src/Practice.java Outdated
Comment on lines 51 to 54
if (a > b*2){
return true;
}
return false;
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

This works! Can you also think of a way to write this more concisely that uses only a single line and no if statement?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I can test it but perhaps

return a > b*2;

?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

@auberonedu also, am I suppose to do another pull request if I made updates based on feedback from review?

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