|
|||
|
From: bob smith <bob@coolfone.comze.com>
Let's say I have a class like this: public class Kern_Pair { int letter1, letter2; } Can someone tell me how the default equals function will behave? like kernpair1.equals(kernpair2) ? --- BBBS/Li6 v4.10 Dada-1 * Origin: Prism bbs (1:261/38) --- Synchronet 3.16a-Win32 NewsLink 1.98 Time Warp of the Future BBS - telnet://time.synchro.net:24 |
|
|
||||
|
||||
|
|
|
|||
|
To: bob smith
From: Jeff Higgins <jeff@invalid.invalid> On 08/09/2012 05:58 PM, bob smith wrote: > Let's say I have a class like this: > > public class Kern_Pair { > int letter1, letter2; > > } > > Can someone tell me how the default equals function will behave? > > like > > kernpair1.equals(kernpair2) > > ? <http://docs.oracle.com/javase/tutorial/java/IandI/objectclass.html> Here is a convenient dashboard to the Oracle Java documentation. <http://docs.oracle.com/javase/7/docs/> You may replace the 7 in the above address with a 3, 4, 5 or 6 to see older versions documentation. --- BBBS/Li6 v4.10 Dada-1 * Origin: Prism bbs (1:261/38) --- Synchronet 3.16a-Win32 NewsLink 1.98 Time Warp of the Future BBS - telnet://time.synchro.net:24 |
|
|||
|
To: Jeff Higgins
From: Arne Vajhoj <arne@vajhoej.dk> On 8/9/2012 6:22 PM, Jeff Higgins wrote: > Here is a convenient dashboard to the Oracle Java documentation. > <http://docs.oracle.com/javase/7/docs/> > You may replace the 7 in the above address with a 3, 4, 5 or 6 > to see older versions documentation. And surprising that works (via redirect). Surprisingly because Java SE 3 and 4 are J2SE 1.3 and 1.4! Someone at Oracle has been smart. Arne --- BBBS/Li6 v4.10 Dada-1 * Origin: Prism bbs (1:261/38) --- Synchronet 3.16a-Win32 NewsLink 1.98 Time Warp of the Future BBS - telnet://time.synchro.net:24 |
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|