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
tefan Ullrich
> > Sent: Friday, September 08, 2000 3:04 PM
> > To: [EMAIL PROTECTED]
> > Subject: AW: How to Convert Array into String
> >
> >
> > Of course there is:
> > String abc = myval[0] + "," + myval[1] + ...
> > but it's not a co
> To: [EMAIL PROTECTED]
> Subject: AW: How to Convert Array into String
>
>
> Of course there is:
> String abc = myval[0] + "," + myval[1] + ...
> but it's not a conversion but a concatenation
>
> regards
> Stefan
>
> -Ursprungliche Nachricht-
Kanojia Jogesh
Gesendet: Freitag, 8. September 2000 08:44
An: [EMAIL PROTECTED]
Betreff: How to Convert Array into String
Hi there
I have one array consisting of 5 value
ie
myval[0]="one";
myval[1]="two";
myval[2]="three";
myval[3]="four";
myval[4]="five&quo
"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
_
Subject: How to Convert Array into String
Author: Kanojia Jogesh <[EMAIL PROTECTED]> at INTERNET
Date:9/8/00 12:13 PM
Hi there
I have one array consisting of 5 value
ie
myval[0]="one";
myval[1]="two";
myval[2]="three";
m
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
Hi there
I have one array consisting of 5 value
ie
myval[0]="one";
myval[1]="two";
myval[2]="three";
myval[3]="four";
myval[4]="five";
is there any function that will copy the value of array into a string
seprated by comma(without using any loop)
ie abc ="one,two,three,four,five";
Since I have
Hi there
I have one array consisting of 5 value
ie
myval[0]="one";
myval[1]="two";
myval[2]="three";
myval[3]="four";
myval[4]="five";
is there any function that will copy the value of array into a string
seprated by comma(without using any loop)
ie abc ="one,two,three,four,five";
Since I have
10 matches
Mail list logo