That method seems to work correctly. Are you sure that the Strings you are passing to the two different objects a and b are exactly the same? Remember Java is case sensitive i.e. "hello" != "Hello"....
Type: Posts; User: helloworld922
That method seems to work correctly. Are you sure that the Strings you are passing to the two different objects a and b are exactly the same? Remember Java is case sensitive i.e. "hello" != "Hello"....