I have just started learning Java. In the online course I am following, I am asked to try the following code:
String email1 = \"meme@me.coh\"; String email2 = \"
There is no reason to do that. In fact, I would choose to combine declaration and initialization as in
final Boolean isMatch = email1.equals (email2);
using the final keyword so you can't change it (accidentally) afterwards anymore either.
final