Skip to content

java-mini-review-Necobi#10

Open
Necobi wants to merge 2 commits intogrc-123-s26:mainfrom
Necobi:main
Open

java-mini-review-Necobi#10
Necobi wants to merge 2 commits intogrc-123-s26:mainfrom
Necobi:main

Conversation

@Necobi
Copy link
Copy Markdown

@Necobi Necobi commented Apr 13, 2026

Updated methods so they run as intended.

Copy link
Copy Markdown

@auberonedu auberonedu left a comment

Choose a reason for hiding this comment

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

Nice job! I think there's a bug in the second method though, see comment below.

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

Choose a reason for hiding this comment

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

I think this checks whether a is greater than b squared (b^2), not if a is greater than double of b (2*b). Can you think of how you would change your code to fix this?

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.

if(a>b2)

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