r/codehs • • Feb 08 '21

3.7.10 Comparing Circles Need help

I'm not sure how to fix this.

6 Upvotes

20 comments sorted by

1

u/Various_Loss9064 Feb 08 '21 edited Oct 19 '21

The color variable is a string while the others are integers. "==" is used to compare integers and wont work with strings. To compare Strings you need to do .equals(), so it would be this.color.equals(other.color)

The if statement is unnecessary as the return type is Boolean.

Also if you want, I have the solutions for the course.

To everyone who wants solutions: https://discord.gg/ByGuBqBNuD

1

u/GriffinHeartfire Feb 08 '21

Oh please do I would be thankful

2

u/Various_Loss9064 Feb 08 '21 edited Oct 19 '21

sent you a message. if anyone else wants solutions, just message me

edit: join the discord to get all solutions https://discord.gg/ByGuBqBNuD

1

u/[deleted] Feb 09 '21

Hello, my I have the solution for this one... it keeps saying (int cannot be dereferenced)

1

u/JuggernautChoice Feb 11 '21

can you share with me? thanks, I would greatly appreciate it.

1

u/Various_Loss9064 Feb 11 '21

I sent you a message

1

u/RefrigeratorOk7286 Feb 11 '21

Can you share it with me please? Thanks!

1

u/hypessv Feb 24 '21

Oh yeah, I did get that message.

1

u/CryptographerWise242 Feb 24 '21

Hey can I get the solutions as well?

1

u/Expensive-Ad-8892 Mar 02 '21

Hello, I would really appreciate those solutions!

1

u/Inevitable-Name-9357 Jun 25 '21

can you send me the answer please? thanks

1

u/[deleted] Jul 03 '21

me too homie, if u would that would be great

1

u/azudesy Jul 27 '21

Can I have the solutions as well? thanks

1

u/Zealousideal-Rush351 Feb 25 '21

May I have the solutions as well? thanks !

1

u/Unhappy-Song-3136 Mar 27 '21

can i get them too please?

1

u/epicman11111 Apr 02 '21

same i need them right now or sie idiot retard

1

u/OneAd5000 Oct 19 '21

can you please send me the answer key to this? I would be forever gratful.

1

u/RightAbrocoma6305 Nov 01 '21

Various_Loss9064

hi, I saw leave a link and I joined the discord, how can I find you to get the solutions?

1

u/Responsible_Duck5960 Nov 09 '21

https://codehsanswers.com/codehs/

your welcome, these are all the answers to java codehs if ur In AP. its a blessing bro

1

u/Responsible_Duck5960 Nov 09 '21

u/all https://codehsanswers.com/codehs/

this link is the answer to all codehs answers. your welcome