Doh! That should be:
if (i != (tables.length - 1))...
Maybe *I* should go back to Programming 101!
-----Original Message-----
From: Dinkelbach, Eric
Sent: Thursday, May 06, 1999 12:54 PM
To: 'A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology.'
Subject: RE: help with getParameterValues()
How about this:
String createview = null;
for (int i = 0; i < tables.length; i++) {
createview += tables[i];
if (i != tables.length) createview += ",";
/* or ", " if you want a space as well */
}
___________________________________________________________________________
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