G
Gunter Hansen
Assume I split a text line with a command like:
String[] part = line.split("\\s+");
Ok, fine, but how is the opposite command?
Keep in mind that the delimiter between the joined slots of the target string should be one blank.
Moreover: Can I join e.g. only slots [3],...,[MAX]?
So I need a command similar to:
String joined = part[3,MAX].join(' ');
How ca I achieve this?
If this is not possible directly then maxbe with a work around?
Gunther
String[] part = line.split("\\s+");
Ok, fine, but how is the opposite command?
Keep in mind that the delimiter between the joined slots of the target string should be one blank.
Moreover: Can I join e.g. only slots [3],...,[MAX]?
So I need a command similar to:
String joined = part[3,MAX].join(' ');
How ca I achieve this?
If this is not possible directly then maxbe with a work around?
Gunther