On Sun, 10 Sep 2000, you wrote:
> You iterate through your array and append the values to a StringBuffer.
Why not use:
String(char[] value, int offset, int count)
by doing
String theString = new String(charArray, 0, charArray.length());
-M@
--
Matt Hixson
Aventail Corporation
Seattle, Washi
on and
> reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: How to Convert Array into String
>Date: Fri, 8 Sep 2000 14:00:09 -0400
>
> Hi Kanojia Jogesh
> As i think, according to JAVA an array may never be cast to a String.
> So
The join function in PHP does loop through your array. If you want to
have a similary function, create one:
public String join ( String joinStr, String[] arrayStr ) {
// implement here
}
// and call the function as
myval[0]="one";
myval[1]="two";
myval[2]="three";
myval[3]="four";
myval[4]="f
You iterate through your array and append the values to a StringBuffer.
> -Original Message-
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Stefan Ullrich
> Sent: Friday, September 08, 2000 3:04 PM
> To: [EMAIL PROTECTED
"signoff JSP-INTEREST"
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org
Hi Kanojia Jogesh
As i think, according to JAVA an array may never be cast to a String.
So there is no direct function for converting array to String.
I am write ?
Peeyush Bansal
Application Developer
IBM Delhi.
__ Reply Separator
I think even if there would have been a method,
it would have internally gone into loop to do so
-Original Message-
From: Kanojia Jogesh [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 07, 2000 11:44 PM
To: [EMAIL PROTECTED]
Subject: How to Convert Array into String
Hi there
I hav