Results 1 to 3 of 3
- 09-19-2011, 10:17 AM #1
state of the art comparing ints in equals()?
hello everybody,
I've no problem comparing Strings inside the equals() method but how to compare a field if its type is an int in a good style?
After opening the thread I found a solution: for primititive types you can use == to compare, ok?Last edited by j2me64; 09-19-2011 at 10:24 AM.
- 09-19-2011, 10:47 AM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,399
- Blog Entries
- 7
- Rep Power
- 17
- 09-19-2011, 11:06 AM #3
Re: state of the art comparint ints in equals()?
ok, now I'm awake ...
Similar Threads
-
How to release multiple threads from waiting state to runnable state
By Dayanand in forum New To JavaReplies: 2Last Post: 02-14-2011, 02:27 PM -
Boolean operators on ints
By rockgardenlove in forum New To JavaReplies: 3Last Post: 02-10-2011, 04:14 AM -
Sum of odd ints 0-n
By falkon114 in forum New To JavaReplies: 7Last Post: 12-06-2010, 08:36 AM -
Help with ints
By Insomniac Riot in forum New To JavaReplies: 5Last Post: 04-02-2010, 03:53 PM -
name clash: equals(E) in and equals(java.lang.Object)
By AdRock in forum New To JavaReplies: 0Last Post: 01-25-2008, 11:13 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks