Your code is working for me as expected. You are probably entering different Strings for a and b (a space after one of the inputs might be the problem). Try printing them as Norm suggested and you...
Type: Posts; User: andreas90
Your code is working for me as expected. You are probably entering different Strings for a and b (a space after one of the inputs might be the problem). Try printing them as Norm suggested and you...
Hello Tyridge77!
You should use the String's equals() method instead of the == operator when comparing Strings.
And for your next posts be sure you use the code tags to get highlighting in your...