THE PACKAGE JAVA.LANG
java.lang.String
20.12
20.12.9
public boolean equals(Object anObject)
The result is
true
 if and only if the argument is not
null
 and is a
String
 object
that represents the same sequence of characters as this
String
 object.
Overrides the
equals
 method of
Object
 ( 20.1.3).
See also the methods
equalsIgnoreCase
 ( 20.12.16) and
compareTo
( 20.12.17).
20.12.10
public int hashCode()
The hashcode for a
String
 object is computed in one of two ways, depending on
its length. Let
n
 be the length ( 20.12.11) of the character sequence and let
c
i
mean the character with index
i
.
If
n
15 , then the hashcode is computed as
n
  1
i
c
i
37
i
= 0
 using
int
 arithmetic.
If
n
> 15 , then the hashcode is computed as
m
i
c
i
k
39
i
= 0
using
int
 arithmetic, where
k
n
=
   
 and
m
n
=
   
, sampling only eight or
nine characters of the string.
8
k
Overrides the
hashCode
 method of
Object
 ( 20.1.4).
20.12.11
public int length()
The length of the sequence of characters represented by this
String
 object is
returned.
535






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

java hosting

 

Our partners: PHP: Hypertext Preprocessor Best Web Hosting Java Web Hosting Inexpensive Web Hosting  Jsp Web Hosting

Cheapest Web Hosting Jsp Hosting Cheap Hosting

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved