I don't understand why when I run my program any strings with spaces in them are not considered equal. for example:
when I run my program and enter "shih tzu" it does not equal this statement:
newBreed.toLowerCase().equals("shih tzu")
Is there some type of discrepancy for strings with spaces in them? It works for all of my conditions without spaces in the string.


LinkBack URL
About LinkBacks
Reply With Quote