Thank you so much. I know it isn't Perl, but sometimes the
tricks work in both places. Not however, for this. I'd forgotten about
the escape character.

Thanks again :-)
Margaret

-----Original Message-----
From: Pier Fumagalli [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 11, 2001 1:15 PM
To: [EMAIL PROTECTED]
Subject: Re: Basic Java question about Quotation Marks


Margaret Fisk at [EMAIL PROTECTED] wrote:
>
> areas=areas+',"'array[i][1];
>
> What I need is "homework","Science","Chess Club" to be used in an in
> statement for the sql query.
>
> I tried to use single quotes to prompt Java to ignore the double quote
> character (it works in Perl) but it still gives me compilation errors.
>
> Does someone have an approach that works?

Java is not PERL :)
 areas=areas+",\""+array[i][1];
Or
 areas+=",\""+array[i][1];

    Pier

___________________________________________________________________________
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

___________________________________________________________________________
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

Reply via email to