Tag Archives: equals

Comparing Strings in JAVA

Hi, for last few weeks I am doing JAVA programming for Android, and as my background is mainly with ActionScript I wasn’t aware of JAVA nuances with String comparison, I thought that the equality operator will work i.e. a == … Continue reading

Posted in android, JAVA | Tagged , , , , | Comments Off on Comparing Strings in JAVA

Rectangle class, equals method returns incorrect value

Hi, recently I’ve used Rectangle’s equals() method and found that it incorrectly returns false when both rectangles are the same. Problem occurs when any of the properties of the Rectangle are NaN (not a number).

Posted in actionscript, bugs, flash | Tagged , , , , | 1 Comment