Re: array[].equal

From: Chris Riesbeck (criesbeck_at_yahoo.com)
Date: 06/10/04


Date: Thu, 10 Jun 2004 13:28:35 -0500

In article <40c82cad$0$8988$afc38c87@news.optusnet.com.au>,
 "Murray" <parps@SPAMOFFoptusnet.SPAMMAGE.com.au> wrote:

> "Roedy Green" <look-on@mindprod.com.invalid> wrote in message
> news:eehfc0l86crqv2kehavju62jap21vjlo5k@4ax.com...
> > Where do you look in the JavaDoc to find out just how clever
> > equal is on
> >
> > comparing two byte[], two int[] or two Object[]
> >
>
> Array doesn't implement equals(), so the method is the standard equals()
> inherited from Object. Hence no iteration logic is performed if that's what
> you mean. Have a look at Arrays.equals instead ...

Or was the question about == and where to look?

In that case, I believe things like this are only in the Java
Language Specification (Sec 15.21), not the javadocs.

== for arrays is explicitly described in 15.21.3



Relevant Pages

  • Re: Using INDEX twice??
    ... ...and then use conditional formatting to hide any error value that may ... to the first cell in the range) which meets the specified criteria. ... IF function returns an array of numbers, ... FALSE*TRUE equals 0 ...
    (microsoft.public.excel.worksheet.functions)
  • Re: compare two byte[] s
    ... All of the very similar overloaded methods in java.util.Arrays, for example, would fit neatly into instance methods of an array class. ... Since each array is its own special class, the virtual machine has to synthesize special class objects for arrays. ... One thing that could really bloat these objects would be to have to define methods for /every/ single array type. ... The equals methods are between 54 bytes and 78 bytes. ...
    (comp.lang.java.programmer)
  • Re: This should be easy...
    ... > saying if the range B2:D2 is blank, then column equals zero? ... and the results will be returned as an array which MAX works on. ... > "Total" cell. ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Discarding unread data after scanf()
    ... A call to fscanf with stdin as the first argument, ... ** If rc equals EOF, then the end of file was reached, ... then there is a string in the array. ... ** then the extra characters are discarded. ...
    (comp.lang.c)
  • Simple Perl
    ... print header, start_html("Carrier Validation Test Architecture"), ... while values of the array are not empty. ... if the array value equals blank. ...
    (comp.lang.perl.misc)