Re: String[] to String
- From: Lew <lew@xxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 05 Apr 2007 17:46:21 -0400
Sathyaish wrote:
It is amazing that java.lang.String class has a split method but no
reverse mechanism for joining, like the "join" method some languages
such as VB/VB.NET and the .NET framework support.
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html#split(java.lang.String)
What in the world are you talking about? Of course it does, and it's way older than the split() method!
String [] a = some.split( regex );
String join = "";
for ( String s : a )
{
join = join + s;
}
--
Lew
.
- Follow-Ups:
- Re: String[] to String
- From: Tor Iver Wilhelmsen
- Re: String[] to String
- References:
- String[] to String
- From: Sathyaish
- Re: String[] to String
- From: Sathyaish
- Re: String[] to String
- From: Sathyaish
- String[] to String
- Prev by Date: Re: String[] to String
- Next by Date: Re: Mutable Dimension, argh!
- Previous by thread: Re: String[] to String
- Next by thread: Re: String[] to String
- Index(es):
Relevant Pages
|