Whats the difference between, if (name.equals("blue")); and if (name=="blue")
if(name.equals("blue")) it is testing the string if it is equal and that would right. if(name=="blue") is only for int and doubles .equals and it is a test not assigning, but the correct way you would .equals because it is a string.
When dealing with integers and strings there are some differences; such that when using the if statement you have to put the .equals("something") syntax.