At 08:46 AM 1/27/00 +0500, you wrote:
>At 11:40 AM 1/25/00 -0500, you wrote:
>Hi
> Use Like this.
> for eg.
> ...
> ...
> String myString="hello"
>
> if(myString.equals("compareHello"))
> {..........;
> ..........}
>
>Hope this helps
>
>Lalith
DJ wanted to know how it was possible to have double quotes inside the
value itself. Use this way:
String myString = "\"Let us flee\", said the fly.";
String myStrinh = "\"Let us fly\", said the flea.";
if (myString.equals("And they \"flew\" through a \"flaw\" in the \"flue\"))
initiateWorldWar(3);
Joona Palaste
>>Hi:
>>
>>Do you know how to define a variable equals a double quote or a string
>>compare with a double quote?
>>
>>Thanks.
>>
>>DJ
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html