Please help me figure out why my code keeps returning "invalid" | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Please help me figure out why my code keeps returning "invalid"

https://code.sololearn.com/cepk86A4V3tZ/#java I do not know how to get the if statement to return the string inside of the parameters. Thank you in advance.

24th Apr 2020, 10:14 PM
Graison Youngboys Barthelus
Graison Youngboys Barthelus - avatar
1 Resposta
+ 1
Instead of == use gray.equals(Garrison) Why? Here is the link https://www.geeksforgeeks.org/difference-equals-method-java/amp/
24th Apr 2020, 10:34 PM
Abhay
Abhay - avatar